From 5a7df48975bcb04b1805031a26f5007211fe4c62 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 23 Jul 2020 23:53:25 -0300 Subject: 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 --- Ryujinx.Graphics.Device/DeviceState.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Ryujinx.Graphics.Device') 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(alignedOffset) = data; + if (_writeCallbacks.TryGetValue(alignedOffset, out Action write)) { write(data); } - else - { - GetRef(alignedOffset) = data; - } } } -- cgit v1.2.3