diff options
| author | 2021-05-24 18:35:37 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:36 -0400 | |
| commit | 3d9ecbe99844c44074c26f2db4db376059f50534 (patch) | |
| tree | 143a67c8da0e7df7568f79196339f5423931c757 /src/shader_recompiler/backend/glsl/reg_alloc.cpp | |
| parent | glsl: Implement FCMP (diff) | |
| download | yuzu-3d9ecbe99844c44074c26f2db4db376059f50534.tar.gz yuzu-3d9ecbe99844c44074c26f2db4db376059f50534.tar.xz yuzu-3d9ecbe99844c44074c26f2db4db376059f50534.zip | |
glsl: Wip storage atomic ops
Diffstat (limited to 'src/shader_recompiler/backend/glsl/reg_alloc.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/reg_alloc.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/reg_alloc.cpp b/src/shader_recompiler/backend/glsl/reg_alloc.cpp index 9f529c358..8db1391fd 100644 --- a/src/shader_recompiler/backend/glsl/reg_alloc.cpp +++ b/src/shader_recompiler/backend/glsl/reg_alloc.cpp | |||
| @@ -61,6 +61,12 @@ std::string MakeImm(const IR::Value& value) { | |||
| 61 | } | 61 | } |
| 62 | } // Anonymous namespace | 62 | } // Anonymous namespace |
| 63 | 63 | ||
| 64 | std::string RegAlloc::Define(IR::Inst& inst) { | ||
| 65 | const Id id{Alloc()}; | ||
| 66 | inst.SetDefinition<Id>(id); | ||
| 67 | return Representation(id); | ||
| 68 | } | ||
| 69 | |||
| 64 | std::string RegAlloc::Define(IR::Inst& inst, Type type) { | 70 | std::string RegAlloc::Define(IR::Inst& inst, Type type) { |
| 65 | const Id id{Alloc()}; | 71 | const Id id{Alloc()}; |
| 66 | const auto type_str{GetType(type, id.index)}; | 72 | const auto type_str{GetType(type, id.index)}; |