diff options
Diffstat (limited to 'src/shader_recompiler/frontend/ir/value.cpp')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/value.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/value.cpp b/src/shader_recompiler/frontend/ir/value.cpp index 9ea61813b..718314213 100644 --- a/src/shader_recompiler/frontend/ir/value.cpp +++ b/src/shader_recompiler/frontend/ir/value.cpp | |||
| @@ -79,6 +79,13 @@ IR::Inst* Value::InstRecursive() const { | |||
| 79 | return inst; | 79 | return inst; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | IR::Value Value::Resolve() const { | ||
| 83 | if (IsIdentity()) { | ||
| 84 | return inst->Arg(0).Resolve(); | ||
| 85 | } | ||
| 86 | return *this; | ||
| 87 | } | ||
| 88 | |||
| 82 | IR::Reg Value::Reg() const { | 89 | IR::Reg Value::Reg() const { |
| 83 | ValidateAccess(Type::Reg); | 90 | ValidateAccess(Type::Reg); |
| 84 | return reg; | 91 | return reg; |