diff options
Diffstat (limited to 'src/shader_recompiler/backend/glasm')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp index 116b42361..34669160a 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | |||
| @@ -164,14 +164,14 @@ void EmitGetPatch(EmitContext& ctx, IR::Inst& inst, IR::Patch patch) { | |||
| 164 | } | 164 | } |
| 165 | const u32 index{IR::GenericPatchIndex(patch)}; | 165 | const u32 index{IR::GenericPatchIndex(patch)}; |
| 166 | const u32 element{IR::GenericPatchElement(patch)}; | 166 | const u32 element{IR::GenericPatchElement(patch)}; |
| 167 | ctx.Add("MOV.F {},result.patch.attrib[{}].{}", inst, index, "xyzw"[element]); | 167 | ctx.Add("MOV.F {},result.patch.attrib[{}].{};", inst, index, "xyzw"[element]); |
| 168 | } | 168 | } |
| 169 | 169 | ||
| 170 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, ScalarF32 value) { | 170 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, ScalarF32 value) { |
| 171 | if (IR::IsGeneric(patch)) { | 171 | if (IR::IsGeneric(patch)) { |
| 172 | const u32 index{IR::GenericPatchIndex(patch)}; | 172 | const u32 index{IR::GenericPatchIndex(patch)}; |
| 173 | const u32 element{IR::GenericPatchElement(patch)}; | 173 | const u32 element{IR::GenericPatchElement(patch)}; |
| 174 | ctx.Add("MOV.F result.patch.attrib[{}].{},{}", index, "xyzw"[element], value); | 174 | ctx.Add("MOV.F result.patch.attrib[{}].{},{};", index, "xyzw"[element], value); |
| 175 | return; | 175 | return; |
| 176 | } | 176 | } |
| 177 | switch (patch) { | 177 | switch (patch) { |