aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Device/DeviceState.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-07-23 23:53:25 -0300
committerGitHub <noreply@github.com>2020-07-23 23:53:25 -0300
commit5a7df48975bcb04b1805031a26f5007211fe4c62 (patch)
tree7de88433b0427368d08b13d061c69ebeaf265624 /Ryujinx.Graphics.Device/DeviceState.cs
parent3c1f220c5ec6ea824e6a0c12d77fd8ce01ee0d1b (diff)
New GPFifo and fast guest constant buffer updates (#1400)
* Add new structures from official docs, start migrating GPFifo * Finish migration to new GPFifo processor * Implement fast constant buffer data upload * Migrate to new GPFifo class * XML docs
Diffstat (limited to 'Ryujinx.Graphics.Device/DeviceState.cs')
-rw-r--r--Ryujinx.Graphics.Device/DeviceState.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.Device/DeviceState.cs b/Ryujinx.Graphics.Device/DeviceState.cs
index ea6942ec..740d8589 100644
--- a/Ryujinx.Graphics.Device/DeviceState.cs
+++ b/Ryujinx.Graphics.Device/DeviceState.cs
@@ -90,14 +90,12 @@ namespace Ryujinx.Graphics.Device
{
int alignedOffset = Align(offset);
+ GetRef<int>(alignedOffset) = data;
+
if (_writeCallbacks.TryGetValue(alignedOffset, out Action<int> write))
{
write(data);
}
- else
- {
- GetRef<int>(alignedOffset) = data;
- }
}
}