From 63f1663fa959d8809d1762d99e9364565ba9b3d8 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 18 Oct 2021 20:24:15 -0300 Subject: Fix shader 8-bit and 16-bit STS/STG (#2741) * Fix 8 and 16-bit STG * Fix 8 and 16-bit STS * Shader cache version bump --- Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs') diff --git a/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs b/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs index 75bd9ddf..1be63868 100644 --- a/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs +++ b/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs @@ -20,7 +20,9 @@ namespace Ryujinx.Graphics.Shader.Translation { return (inst.IsAtomic() && IsGlobalMr(inst)) || inst == Instruction.LoadGlobal || - inst == Instruction.StoreGlobal; + inst == Instruction.StoreGlobal || + inst == Instruction.StoreGlobal16 || + inst == Instruction.StoreGlobal8; } private static bool IsGlobalMr(Instruction inst) -- cgit v1.2.3