summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-11 06:33:33 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:38 +0200
commit4759db28d0b98c79f9a630b63ba13c4cd0df9109 (patch)
tree3cc20c600bf0733f464e3c844688b1cef766e191 /src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
parentglsl: Reorganize backend code, remove unneeded [[maybe_unused]] (diff)
downloadyuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar
yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar.gz
yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar.bz2
yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar.lz
yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar.xz
yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar.zst
yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.zip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_select.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_select.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
index 49fba9073..7aa6096e6 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
@@ -28,12 +28,12 @@ void EmitSelectU16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::stri
void EmitSelectU32(EmitContext& ctx, IR::Inst& inst, std::string_view cond,
std::string_view true_value, std::string_view false_value) {
- ctx.AddU32("{}={}?{}:{};", inst, cond, true_value, false_value);
+ ctx.AddU32("{}={}?uint({}):uint({});", inst, cond, true_value, false_value);
}
void EmitSelectU64(EmitContext& ctx, IR::Inst& inst, std::string_view cond,
std::string_view true_value, std::string_view false_value) {
- ctx.AddU64("{}={}?{}:{};", inst, cond, true_value, false_value);
+ ctx.AddU64("{}={}?uint64_t({}):uint64_t({});", inst, cond, true_value, false_value);
}
void EmitSelectF16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,