diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-10-04 19:46:11 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 19:46:11 -0300 |
commit | a0af6e4d07f623692943c5fe68b183365b38c812 (patch) | |
tree | c8bec298b2671a8a1cc205a2cee6c5a583655173 /src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs | |
parent | f61b7818c3330fa0cda3fcde5b1de51b1477bfa0 (diff) |
Use unique temporary variables for function call parameters on SPIR-V (#5757)1.1.1041
* Use unique temporary variables for function call parameters on SPIR-V
* Shader cache version bump
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs b/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs index 771723c2..56263e79 100644 --- a/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs +++ b/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs @@ -311,7 +311,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv var (function, spvFunc) = context.GetFunction(funcId.Value); var args = new SpvInstruction[operation.SourcesCount - 1]; - var spvLocals = context.GetLocalForArgsPointers(funcId.Value); for (int i = 0; i < args.Length; i++) { @@ -324,12 +323,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv else { var type = function.GetArgumentType(i); - var value = context.Get(type, operand); - var spvLocal = spvLocals[i]; - context.Store(spvLocal, value); - - args[i] = spvLocal; + args[i] = context.Get(type, operand); } } |