summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-21 04:59:46 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:33 +0200
commiteb156679057340524c3e1e00d4910c88a2f3c6c2 (patch)
tree884afd9d28ab676101e6c5c5815b015aa62a6dad
parentglasm: Fix patch attribute declarations (diff)
downloadyuzu-eb156679057340524c3e1e00d4910c88a2f3c6c2.tar
yuzu-eb156679057340524c3e1e00d4910c88a2f3c6c2.tar.gz
yuzu-eb156679057340524c3e1e00d4910c88a2f3c6c2.tar.bz2
yuzu-eb156679057340524c3e1e00d4910c88a2f3c6c2.tar.lz
yuzu-eb156679057340524c3e1e00d4910c88a2f3c6c2.tar.xz
yuzu-eb156679057340524c3e1e00d4910c88a2f3c6c2.tar.zst
yuzu-eb156679057340524c3e1e00d4910c88a2f3c6c2.zip
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp4
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) {
}
const u32 index{IR::GenericPatchIndex(patch)};
const u32 element{IR::GenericPatchElement(patch)};
- ctx.Add("MOV.F {},result.patch.attrib[{}].{}", inst, index, "xyzw"[element]);
+ ctx.Add("MOV.F {},result.patch.attrib[{}].{};", inst, index, "xyzw"[element]);
}
void EmitSetPatch(EmitContext& ctx, IR::Patch patch, ScalarF32 value) {
if (IR::IsGeneric(patch)) {
const u32 index{IR::GenericPatchIndex(patch)};
const u32 element{IR::GenericPatchElement(patch)};
- ctx.Add("MOV.F result.patch.attrib[{}].{},{}", index, "xyzw"[element], value);
+ ctx.Add("MOV.F result.patch.attrib[{}].{},{};", index, "xyzw"[element], value);
return;
}
switch (patch) {