summaryrefslogtreecommitdiff
path: root/src/amd/compiler/aco_builder_h.py
diff options
context:
space:
mode:
authorRhys Perry <pendingchaos02@gmail.com>2023-01-04 14:52:34 +0000
committerMarge Bot <emma+marge@anholt.net>2023-01-10 16:01:38 +0000
commitc3dd1931d99121dd319d7802b543a5b0957516f9 (patch)
treea92b77e36ca2eed173d4f470e8c97ff7c155a80b /src/amd/compiler/aco_builder_h.py
parente386523380d8fac9b1bca3848b1fafa8bdc90a65 (diff)
downloadmesa-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.py8
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 {