summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-27 18:57:34 -0400
committerMarge Bot <[email protected]>2020-04-29 15:35:54 +0000
commitecf946638e0f25d5a083d09b25b8c463b702212b (patch)
treeaf46da8027a2b226890c2f0a4893a03a0d84af82
parent6757c480ab43d9020fac7a9e6233af6431ad6351 (diff)
pan/mdg: Track ALU dest type
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4793>
-rw-r--r--src/panfrost/midgard/midgard_compile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index 2e10aae117f..2d7a437cb1b 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -647,7 +647,6 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr)
bool is_ssa = instr->dest.dest.is_ssa;
- unsigned dest = nir_dest_index(&instr->dest.dest);
unsigned nr_components = nir_dest_num_components(instr->dest.dest);
unsigned nr_inputs = nir_op_infos[instr->op].num_inputs;
@@ -919,7 +918,9 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr)
midgard_instruction ins = {
.type = TAG_ALU_4,
- .dest = dest,
+ .dest = nir_dest_index(&instr->dest.dest),
+ .dest_type = nir_op_infos[instr->op].output_type
+ | nir_dest_bit_size(instr->dest.dest),
};
for (unsigned i = nr_inputs; i < ARRAY_SIZE(ins.src); ++i)