diff options
| author | 2021-05-20 22:59:46 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:33 -0400 | |
| commit | eb156679057340524c3e1e00d4910c88a2f3c6c2 (patch) | |
| tree | 884afd9d28ab676101e6c5c5815b015aa62a6dad /src/shader_recompiler/backend | |
| parent | glasm: Fix patch attribute declarations (diff) | |
| download | yuzu-eb156679057340524c3e1e00d4910c88a2f3c6c2.tar.gz yuzu-eb156679057340524c3e1e00d4910c88a2f3c6c2.tar.xz yuzu-eb156679057340524c3e1e00d4910c88a2f3c6c2.zip | |
emit_glasm_context_get_and_set.cpp: Add missing semicolons
Diffstat (limited to 'src/shader_recompiler/backend')
| -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) { |