diff options
| author | 2021-05-28 13:54:09 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:36 -0400 | |
| commit | f6bbc76336942454a862280e5b2158ceab49a173 (patch) | |
| tree | b81e925154bfa7dbbd1aedc50d167fa87905b3db /src/shader_recompiler/backend/glsl/reg_alloc.cpp | |
| parent | glsl: Fix bindings, add some CC ops (diff) | |
| download | yuzu-f6bbc76336942454a862280e5b2158ceab49a173.tar.gz yuzu-f6bbc76336942454a862280e5b2158ceab49a173.tar.xz yuzu-f6bbc76336942454a862280e5b2158ceab49a173.zip | |
glsl: WIP var forward declaration
to fix Loop control flow.
Diffstat (limited to 'src/shader_recompiler/backend/glsl/reg_alloc.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/reg_alloc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/reg_alloc.cpp b/src/shader_recompiler/backend/glsl/reg_alloc.cpp index a987ce543..b287b870a 100644 --- a/src/shader_recompiler/backend/glsl/reg_alloc.cpp +++ b/src/shader_recompiler/backend/glsl/reg_alloc.cpp | |||
| @@ -74,7 +74,9 @@ std::string RegAlloc::Define(IR::Inst& inst, Type type) { | |||
| 74 | std::string type_str = ""; | 74 | std::string type_str = ""; |
| 75 | if (!register_defined[id.index]) { | 75 | if (!register_defined[id.index]) { |
| 76 | register_defined[id.index] = true; | 76 | register_defined[id.index] = true; |
| 77 | type_str = GetGlslType(type); | 77 | // type_str = GetGlslType(type); |
| 78 | reg_types.push_back(GetGlslType(type)); | ||
| 79 | ++num_used_registers; | ||
| 78 | } | 80 | } |
| 79 | inst.SetDefinition<Id>(id); | 81 | inst.SetDefinition<Id>(id); |
| 80 | return type_str + Representation(id); | 82 | return type_str + Representation(id); |