summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-11 06:41:28 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:38 +0200
commit7d89a82a4891f78e2c068a24ad3bb56d74c92055 (patch)
treedb21e0994cfd729d7deeaf47eb300d1109539861 /src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
parentglsl: Address Rodrigo's feedback (diff)
downloadyuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar
yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar.gz
yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar.bz2
yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar.lz
yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar.xz
yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar.zst
yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
index 6e04c6cb2..7a2f79d10 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
@@ -103,7 +103,7 @@ void EmitShiftRightLogical64(EmitContext& ctx, IR::Inst& inst, std::string_view
void EmitShiftRightArithmetic32(EmitContext& ctx, IR::Inst& inst, std::string_view base,
std::string_view shift) {
- ctx.AddS32("{}=int({})>>{};", inst, base, shift);
+ ctx.AddU32("{}=int({})>>{};", inst, base, shift);
}
void EmitShiftRightArithmetic64(EmitContext& ctx, IR::Inst& inst, std::string_view base,