diff options
| author | 2021-05-21 02:20:08 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:35 -0400 | |
| commit | 78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd (patch) | |
| tree | 8287b0f71fc69683d981baddda48449565fb20b8 /src/shader_recompiler/backend/glsl/reg_alloc.cpp | |
| parent | glsl: Reusable typed variables. IADD32 (diff) | |
| download | yuzu-78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd.tar.gz yuzu-78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd.tar.xz yuzu-78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd.zip | |
glsl: INeg and IAdd negate tests
Diffstat (limited to 'src/shader_recompiler/backend/glsl/reg_alloc.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/reg_alloc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/reg_alloc.cpp b/src/shader_recompiler/backend/glsl/reg_alloc.cpp index 5ad1872db..f4886dbfd 100644 --- a/src/shader_recompiler/backend/glsl/reg_alloc.cpp +++ b/src/shader_recompiler/backend/glsl/reg_alloc.cpp | |||
| @@ -51,8 +51,7 @@ std::string RegAlloc::Define(IR::Inst& inst, Type type) { | |||
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | std::string RegAlloc::Consume(const IR::Value& value) { | 53 | std::string RegAlloc::Consume(const IR::Value& value) { |
| 54 | const auto result = value.IsImmediate() ? MakeImm(value) : Consume(*value.InstRecursive()); | 54 | return value.IsImmediate() ? MakeImm(value) : Consume(*value.InstRecursive()); |
| 55 | return result; | ||
| 56 | } | 55 | } |
| 57 | 56 | ||
| 58 | std::string RegAlloc::Consume(IR::Inst& inst) { | 57 | std::string RegAlloc::Consume(IR::Inst& inst) { |