diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-28 19:54:09 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
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 yuzu-f6bbc76336942454a862280e5b2158ceab49a173.tar.gz yuzu-f6bbc76336942454a862280e5b2158ceab49a173.tar.bz2 yuzu-f6bbc76336942454a862280e5b2158ceab49a173.tar.lz yuzu-f6bbc76336942454a862280e5b2158ceab49a173.tar.xz yuzu-f6bbc76336942454a862280e5b2158ceab49a173.tar.zst yuzu-f6bbc76336942454a862280e5b2158ceab49a173.zip |
Diffstat (limited to '')
-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) { std::string type_str = ""; if (!register_defined[id.index]) { register_defined[id.index] = true; - type_str = GetGlslType(type); + // type_str = GetGlslType(type); + reg_types.push_back(GetGlslType(type)); + ++num_used_registers; } inst.SetDefinition<Id>(id); return type_str + Representation(id); |