summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_glsl.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-05-28 21:24:52 -0400
committerGravatar ameerj2021-07-22 21:51:36 -0400
commit8ba814efb295f0b8494b3679c484c7ceab31c392 (patch)
tree7c81176bc12ea7b99309d2748e03c61aa2bf64b8 /src/shader_recompiler/backend/glsl/emit_glsl.cpp
parentglsl: Fix integer conversions, implement clamp CC (diff)
downloadyuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.tar.gz
yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.tar.xz
yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.zip
glsl: Better Storage access and wip warps
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.cpp b/src/shader_recompiler/backend/glsl/emit_glsl.cpp
index 992e4b82e..800de58b7 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl.cpp
@@ -183,8 +183,11 @@ std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info, IR
183 for (size_t index = 0; index < ctx.reg_alloc.num_used_registers; ++index) { 183 for (size_t index = 0; index < ctx.reg_alloc.num_used_registers; ++index) {
184 ctx.header += fmt::format("{} R{};", ctx.reg_alloc.reg_types[index], index); 184 ctx.header += fmt::format("{} R{};", ctx.reg_alloc.reg_types[index], index);
185 } 185 }
186 // TODO: track CC usage 186 // TODO: track usage
187 ctx.header += "uint carry;"; 187 ctx.header += "uint carry;";
188 if (program.info.uses_subgroup_shuffles) {
189 ctx.header += "bool shfl_in_bounds;\n";
190 }
188 ctx.code.insert(0, ctx.header); 191 ctx.code.insert(0, ctx.header);
189 ctx.code += "}"; 192 ctx.code += "}";
190 fmt::print("\n{}\n", ctx.code); 193 fmt::print("\n{}\n", ctx.code);