diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-28 21:51:50 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
commit | 21797efa548598692a82a25959865236bd9e7116 (patch) | |
tree | 2d5b629fbbe67ff11f908b9d019a7e653451a2a0 /src/shader_recompiler/backend/glsl/emit_glsl.cpp | |
parent | glsl: SSBO access fixes and wip SampleExplicitLod implementation. (diff) | |
download | yuzu-21797efa548598692a82a25959865236bd9e7116.tar yuzu-21797efa548598692a82a25959865236bd9e7116.tar.gz yuzu-21797efa548598692a82a25959865236bd9e7116.tar.bz2 yuzu-21797efa548598692a82a25959865236bd9e7116.tar.lz yuzu-21797efa548598692a82a25959865236bd9e7116.tar.xz yuzu-21797efa548598692a82a25959865236bd9e7116.tar.zst yuzu-21797efa548598692a82a25959865236bd9e7116.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.cpp b/src/shader_recompiler/backend/glsl/emit_glsl.cpp index feb3ede1a..992e4b82e 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl.cpp @@ -183,6 +183,8 @@ std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info, IR for (size_t index = 0; index < ctx.reg_alloc.num_used_registers; ++index) { ctx.header += fmt::format("{} R{};", ctx.reg_alloc.reg_types[index], index); } + // TODO: track CC usage + ctx.header += "uint carry;"; ctx.code.insert(0, ctx.header); ctx.code += "}"; fmt::print("\n{}\n", ctx.code); |