diff options
| author | 2021-05-28 15:51:50 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:36 -0400 | |
| 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.gz yuzu-21797efa548598692a82a25959865236bd9e7116.tar.xz yuzu-21797efa548598692a82a25959865236bd9e7116.zip | |
glsl: Implement IADD CC
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 | |||
| 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 | ||
| 187 | ctx.header += "uint carry;"; | ||
| 186 | ctx.code.insert(0, ctx.header); | 188 | ctx.code.insert(0, ctx.header); |
| 187 | ctx.code += "}"; | 189 | ctx.code += "}"; |
| 188 | fmt::print("\n{}\n", ctx.code); | 190 | fmt::print("\n{}\n", ctx.code); |