diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-05-01 15:46:21 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-01 20:46:21 +0200 |
| commit | 0e9823d7e6668731598b6f04b551efa801969e7b (patch) | |
| tree | 87ea0b82f1d01dae9bf1a82ba24117c898bed439 /Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGen.cs | |
| parent | 1998a3a90afeb5b1bede6ba0d17e7518a71cfe4f (diff) | |
Fix shader buffer write flag on atomic instructions (#2261)
* Fix shader buffer write flag on atomic instructions
* Shader cache version bump
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGen.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGen.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGen.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGen.cs index 622ac646..0ea7f151 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGen.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGen.cs @@ -61,8 +61,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl.Instructions switch (memRegion) { - case Instruction.MrShared: args += LoadShared (context, operation); break; - case Instruction.MrStorage: args += LoadStorage(context, operation); break; + case Instruction.MrShared: args += LoadShared(context, operation); break; + case Instruction.MrStorage: args += LoadStorage(context, operation, forAtomic: true); break; default: throw new InvalidOperationException($"Invalid memory region \"{memRegion}\"."); } |
