summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-14 07:10:03 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:31 +0200
commit0f88fb5d72401e87b2d33aab5fad7cc2a0002fc3 (patch)
tree17bcd239bf4764a35e31e0a96c1ca8540b7d114f /src/shader_recompiler/backend
parentglasm: Declare NV_shader_thread_group when needed (diff)
downloadyuzu-0f88fb5d72401e87b2d33aab5fad7cc2a0002fc3.tar
yuzu-0f88fb5d72401e87b2d33aab5fad7cc2a0002fc3.tar.gz
yuzu-0f88fb5d72401e87b2d33aab5fad7cc2a0002fc3.tar.bz2
yuzu-0f88fb5d72401e87b2d33aab5fad7cc2a0002fc3.tar.lz
yuzu-0f88fb5d72401e87b2d33aab5fad7cc2a0002fc3.tar.xz
yuzu-0f88fb5d72401e87b2d33aab5fad7cc2a0002fc3.tar.zst
yuzu-0f88fb5d72401e87b2d33aab5fad7cc2a0002fc3.zip
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
index adcc0404b..1befeca91 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
@@ -175,43 +175,43 @@ void EmitUClamp32(EmitContext& ctx, IR::Inst& inst, ScalarU32 value, ScalarU32 m
}
void EmitSLessThan(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) {
- ctx.Add("SLT.S {},{},{};", inst, lhs, rhs);
+ ctx.Add("SLT.S {}.x,{},{};", inst, lhs, rhs);
}
void EmitULessThan(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) {
- ctx.Add("SLT.U {},{},{};", inst, lhs, rhs);
+ ctx.Add("SLT.U {}.x,{},{};", inst, lhs, rhs);
}
void EmitIEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) {
- ctx.Add("SEQ.S {},{},{};", inst, lhs, rhs);
+ ctx.Add("SEQ.S {}.x,{},{};", inst, lhs, rhs);
}
void EmitSLessThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) {
- ctx.Add("SLE.S {},{},{};", inst, lhs, rhs);
+ ctx.Add("SLE.S {}.x,{},{};", inst, lhs, rhs);
}
void EmitULessThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) {
- ctx.Add("SLE.U {},{},{};", inst, lhs, rhs);
+ ctx.Add("SLE.U {}.x,{},{};", inst, lhs, rhs);
}
void EmitSGreaterThan(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) {
- ctx.Add("SGT.S {},{},{};", inst, lhs, rhs);
+ ctx.Add("SGT.S {}.x,{},{};", inst, lhs, rhs);
}
void EmitUGreaterThan(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) {
- ctx.Add("SGT.U {},{},{};", inst, lhs, rhs);
+ ctx.Add("SGT.U {}.x,{},{};", inst, lhs, rhs);
}
void EmitINotEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) {
- ctx.Add("SNE.U {},{},{};", inst, lhs, rhs);
+ ctx.Add("SNE.U {}.x,{},{};", inst, lhs, rhs);
}
void EmitSGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) {
- ctx.Add("SGE.S {},{},{};", inst, lhs, rhs);
+ ctx.Add("SGE.S {}.x,{},{};", inst, lhs, rhs);
}
void EmitUGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) {
- ctx.Add("SGE.U {},{},{};", inst, lhs, rhs);
+ ctx.Add("SGE.U {}.x,{},{};", inst, lhs, rhs);
}
} // namespace Shader::Backend::GLASM