소스 검색

Fix storage buffer access when match fails (#4037)

* Fix storage buffer access when match fails

* Shader cache version bump
gdkchan 3 년 전
부모
커밋
dde9bb5c69
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheHostStorage.cs
  2. 1 1
      Ryujinx.Graphics.Shader/Translation/Rewriter.cs

+ 1 - 1
Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheHostStorage.cs

@@ -22,7 +22,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
         private const ushort FileFormatVersionMajor = 1;
         private const ushort FileFormatVersionMinor = 2;
         private const uint FileFormatVersionPacked = ((uint)FileFormatVersionMajor << 16) | FileFormatVersionMinor;
-        private const uint CodeGenVersion = 4029;
+        private const uint CodeGenVersion = 4037;
 
         private const string SharedTocFileName = "shared.toc";
         private const string SharedDataFileName = "shared.data";

+ 1 - 1
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());