summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_glsl.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-06-22 23:09:22 -0400
committerGravatar ameerj2021-07-22 21:51:39 -0400
commit27ca8a0e13deeebb4185ec22619d2b78b5ad8b21 (patch)
tree627d3599a95edd45ff409fe5751fd059cdb0db9b /src/shader_recompiler/backend/glsl/emit_glsl.cpp
parentshader: Remove IAbs64 (diff)
downloadyuzu-27ca8a0e13deeebb4185ec22619d2b78b5ad8b21.tar.gz
yuzu-27ca8a0e13deeebb4185ec22619d2b78b5ad8b21.tar.xz
yuzu-27ca8a0e13deeebb4185ec22619d2b78b5ad8b21.zip
glsl: Better IAdd Overflow CC fix
This ensures the original operand values are not overwritten when being used in the overflow detection.
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.cpp b/src/shader_recompiler/backend/glsl/emit_glsl.cpp
index 5867a04ab..32c4f1da2 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl.cpp
@@ -227,7 +227,7 @@ std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info, IR
227 ctx.header += "void main(){\n"; 227 ctx.header += "void main(){\n";
228 DefineVariables(ctx, ctx.header); 228 DefineVariables(ctx, ctx.header);
229 if (ctx.uses_cc_carry) { 229 if (ctx.uses_cc_carry) {
230 ctx.header += "uint carry;uint iadd_op_b;"; 230 ctx.header += "uint carry;";
231 } 231 }
232 if (program.info.uses_subgroup_shuffles) { 232 if (program.info.uses_subgroup_shuffles) {
233 ctx.header += "bool shfl_in_bounds;"; 233 ctx.header += "bool shfl_in_bounds;";