diff options
| author | 2021-05-18 21:30:09 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:32 -0400 | |
| commit | 2e0d56da7e9c294f690590a1db6067f3034af665 (patch) | |
| tree | ef335321699b43a6b14080af5b40c9a4fdf6524e /src/shader_recompiler/backend/glasm/emit_glasm_select.cpp | |
| parent | HACK: Bind stages before and after bindings (diff) | |
| download | yuzu-2e0d56da7e9c294f690590a1db6067f3034af665.tar.gz yuzu-2e0d56da7e9c294f690590a1db6067f3034af665.tar.xz yuzu-2e0d56da7e9c294f690590a1db6067f3034af665.zip | |
glasm: Implement SelectU1
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_select.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_select.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_select.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_select.cpp index b9e5cbbbe..68fff613c 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_select.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_select.cpp | |||
| @@ -9,9 +9,9 @@ | |||
| 9 | 9 | ||
| 10 | namespace Shader::Backend::GLASM { | 10 | namespace Shader::Backend::GLASM { |
| 11 | 11 | ||
| 12 | void EmitSelectU1([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] ScalarS32 cond, | 12 | void EmitSelectU1(EmitContext& ctx, IR::Inst& inst, ScalarS32 cond, ScalarS32 true_value, |
| 13 | [[maybe_unused]] ScalarS32 true_value, [[maybe_unused]] ScalarS32 false_value) { | 13 | ScalarS32 false_value) { |
| 14 | throw NotImplementedException("GLASM instruction"); | 14 | ctx.Add("CMP.S {},{},{},{};", inst, cond, true_value, false_value); |
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | void EmitSelectU8([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] ScalarS32 cond, | 17 | void EmitSelectU8([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] ScalarS32 cond, |