summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_glsl.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2023-10-23 10:33:24 -0400
committerGravatar GitHub2023-10-23 10:33:24 -0400
commitda5c49f22d5c8308aa751e7702e1b64e18b833da (patch)
tree80a920d7f29d5885744852670c607e50eabf9631 /src/shader_recompiler/backend/glsl/emit_glsl.cpp
parentMerge pull request #11854 from german77/vibration-ui (diff)
parentemit_glsl_warp: Fix shfl_in_bounds conditional (diff)
downloadyuzu-da5c49f22d5c8308aa751e7702e1b64e18b833da.tar.gz
yuzu-da5c49f22d5c8308aa751e7702e1b64e18b833da.tar.xz
yuzu-da5c49f22d5c8308aa751e7702e1b64e18b833da.zip
Merge pull request #11847 from ameerj/glsl-shfl-fix
emit_glsl_warp: Fix shfl_in_bounds conditional
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.cpp b/src/shader_recompiler/backend/glsl/emit_glsl.cpp
index d91e04446..66ecfc9f7 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl.cpp
@@ -242,6 +242,7 @@ std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info, IR
242 } 242 }
243 if (program.info.uses_subgroup_shuffles) { 243 if (program.info.uses_subgroup_shuffles) {
244 ctx.header += "bool shfl_in_bounds;"; 244 ctx.header += "bool shfl_in_bounds;";
245 ctx.header += "uint shfl_result;";
245 } 246 }
246 ctx.code.insert(0, ctx.header); 247 ctx.code.insert(0, ctx.header);
247 ctx.code += '}'; 248 ctx.code += '}';