diff options
author | Rhys Perry <pendingchaos02@gmail.com> | 2023-01-04 14:52:34 +0000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-01-10 16:01:38 +0000 |
commit | c3dd1931d99121dd319d7802b543a5b0957516f9 (patch) | |
tree | a92b77e36ca2eed173d4f470e8c97ff7c155a80b /src/amd/compiler/aco_builder_h.py | |
parent | e386523380d8fac9b1bca3848b1fafa8bdc90a65 (diff) | |
download | mesa-c3dd1931d99121dd319d7802b543a5b0957516f9.tar.gz |
aco: allow Builder::Result to be dereferenced
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20251>
Diffstat (limited to 'src/amd/compiler/aco_builder_h.py')
-rw-r--r-- | src/amd/compiler/aco_builder_h.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/amd/compiler/aco_builder_h.py b/src/amd/compiler/aco_builder_h.py index 41912825be7..f970854d50f 100644 --- a/src/amd/compiler/aco_builder_h.py +++ b/src/amd/compiler/aco_builder_h.py @@ -160,6 +160,14 @@ public: aco_ptr<Instruction> get_ptr() const { return aco_ptr<Instruction>(instr); } + + Instruction * operator * () const { + return instr; + } + + Instruction * operator -> () const { + return instr; + } }; struct Op { |