aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs b/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs
index 56263e79..50a73ab8 100644
--- a/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs
+++ b/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Instructions.cs
@@ -316,16 +316,9 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
{
var operand = operation.GetSource(i + 1);
- if (i >= function.InArguments.Length)
- {
- args[i] = context.GetLocalPointer((AstOperand)operand);
- }
- else
- {
- var type = function.GetArgumentType(i);
-
- args[i] = context.Get(type, operand);
- }
+ AstOperand local = (AstOperand)operand;
+ Debug.Assert(local.Type == OperandType.LocalVariable);
+ args[i] = context.GetLocalPointer(local);
}
var retType = function.ReturnType;