summaryrefslogtreecommitdiff
path: root/src/amd/compiler/aco_reduce_assign.cpp
diff options
context:
space:
mode:
authorRhys Perry <pendingchaos02@gmail.com>2021-01-21 16:13:34 +0000
committerMarge Bot <eric+marge@anholt.net>2021-01-22 14:12:33 +0000
commite115b01948f90dcb922c626438a0e83a796d5ceb (patch)
treedfbf5468f0a7bdd79cdb4a40d2a7e42d884d63f4 /src/amd/compiler/aco_reduce_assign.cpp
parent1d245cd18b637484512f275b9bb49f05105ad373 (diff)
downloadmesa-e115b01948f90dcb922c626438a0e83a796d5ceb.tar.gz
aco: return references in instruction cast methods
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8595>
Diffstat (limited to 'src/amd/compiler/aco_reduce_assign.cpp')
-rw-r--r--src/amd/compiler/aco_reduce_assign.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/compiler/aco_reduce_assign.cpp b/src/amd/compiler/aco_reduce_assign.cpp
index 1c915f21253..1d1a0252e49 100644
--- a/src/amd/compiler/aco_reduce_assign.cpp
+++ b/src/amd/compiler/aco_reduce_assign.cpp
@@ -91,7 +91,7 @@ void setup_reduce_temp(Program* program)
if (instr->format != Format::PSEUDO_REDUCTION)
continue;
- ReduceOp op = instr->reduction()->reduce_op;
+ ReduceOp op = instr->reduction().reduce_op;
reduceTmp_in_loop |= block.loop_nest_depth > 0;
if ((int)last_top_level_block_idx != inserted_at) {
@@ -115,7 +115,7 @@ void setup_reduce_temp(Program* program)
}
/* same as before, except for the vector temporary instead of the reduce temporary */
- unsigned cluster_size = instr->reduction()->cluster_size;
+ unsigned cluster_size = instr->reduction().cluster_size;
bool need_vtmp = op == imul32 || op == fadd64 || op == fmul64 ||
op == fmin64 || op == fmax64 || op == umin64 ||
op == umax64 || op == imin64 || op == imax64 ||