aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Translation/Rewriter.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-12-06 00:36:54 -0300
committerGitHub <noreply@github.com>2022-12-06 03:36:54 +0000
commitdde9bb5c69d2e1a70df82af8accd3d01fb94b78d (patch)
tree1d2e0d07f2a070c54931cd0295cfba14c84d1a26 /Ryujinx.Graphics.Shader/Translation/Rewriter.cs
parent266338a7c9675300e4f557f32a3b1e98977712d7 (diff)
Fix storage buffer access when match fails (#4037)1.1.434
* Fix storage buffer access when match fails * Shader cache version bump
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation/Rewriter.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Translation/Rewriter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/Rewriter.cs b/Ryujinx.Graphics.Shader/Translation/Rewriter.cs
index 9029e4de..c4d2c5d9 100644
--- a/Ryujinx.Graphics.Shader/Translation/Rewriter.cs
+++ b/Ryujinx.Graphics.Shader/Translation/Rewriter.cs
@@ -126,7 +126,7 @@ namespace Ryujinx.Graphics.Shader.Translation
sbSlot = PrependOperation(Instruction.ConditionalSelect, inRange, Const(slot), sbSlot);
}
- if (sbUseMask != 0)
+ if (config.AccessibleStorageBuffersMask != 0)
{
Operand alignMask = Const(-config.GpuAccessor.QueryHostStorageBufferOffsetAlignment());