aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine/MethodCopyBuffer.cs
diff options
context:
space:
mode:
authorgdk <gab.dark.100@gmail.com>2019-11-21 23:46:14 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit2437ccca0e82b8b2a99d8632acf28ca0cc14c523 (patch)
treefff04c08f5812b602378f352650144736983497a /Ryujinx.Graphics.Gpu/Engine/MethodCopyBuffer.cs
parent3ca675223a495f7d0a9d2130b8d88d9c5c79747e (diff)
Separate sub-channel state
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/MethodCopyBuffer.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/MethodCopyBuffer.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/MethodCopyBuffer.cs b/Ryujinx.Graphics.Gpu/Engine/MethodCopyBuffer.cs
index 40560ab1..0bf836e1 100644
--- a/Ryujinx.Graphics.Gpu/Engine/MethodCopyBuffer.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/MethodCopyBuffer.cs
@@ -6,11 +6,11 @@ namespace Ryujinx.Graphics.Gpu.Engine
{
partial class Methods
{
- private void CopyBuffer(int argument)
+ private void CopyBuffer(GpuState state, int argument)
{
- var cbp = _context.State.Get<CopyBufferParams>(MethodOffset.CopyBufferParams);
+ var cbp = state.Get<CopyBufferParams>(MethodOffset.CopyBufferParams);
- var swizzle = _context.State.Get<CopyBufferSwizzle>(MethodOffset.CopyBufferSwizzle);
+ var swizzle = state.Get<CopyBufferSwizzle>(MethodOffset.CopyBufferSwizzle);
bool srcLinear = (argument & (1 << 7)) != 0;
bool dstLinear = (argument & (1 << 8)) != 0;
@@ -29,8 +29,8 @@ namespace Ryujinx.Graphics.Gpu.Engine
int srcBpp = swizzle.UnpackSrcComponentsCount() * swizzle.UnpackComponentSize();
int dstBpp = swizzle.UnpackDstComponentsCount() * swizzle.UnpackComponentSize();
- var dst = _context.State.Get<CopyBufferTexture>(MethodOffset.CopyBufferDstTexture);
- var src = _context.State.Get<CopyBufferTexture>(MethodOffset.CopyBufferSrcTexture);
+ var dst = state.Get<CopyBufferTexture>(MethodOffset.CopyBufferDstTexture);
+ var src = state.Get<CopyBufferTexture>(MethodOffset.CopyBufferSrcTexture);
var srcCalculator = new OffsetCalculator(
src.Width,