summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIcecream95 <ixn@keemail.me>2020-06-20 18:20:59 +1200
committerMarge Bot <eric+marge@anholt.net>2020-06-22 12:15:05 +0000
commitb96d4449f4478a677f222343303eee6ad514b4f7 (patch)
treedd987d14ab7b4ad8d3e6191e56660f8090cb4263
parent5b351c801e02e5fc44c87932fe44e87c568456b4 (diff)
pan/mdg: Fix max_comp calculation for constant printing
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5573>
-rw-r--r--src/panfrost/midgard/midgard_print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_print.c b/src/panfrost/midgard/midgard_print.c
index 1c424f03091..3e880071043 100644
--- a/src/panfrost/midgard/midgard_print.c
+++ b/src/panfrost/midgard/midgard_print.c
@@ -246,7 +246,7 @@ mir_print_embedded_constant(midgard_instruction *ins, unsigned src_idx)
unsigned *swizzle = ins->swizzle[src_idx];
unsigned comp_mask = effective_writemask(&ins->alu, ins->mask);
unsigned num_comp = util_bitcount(comp_mask);
- unsigned max_comp = mir_components_for_type(ins->dest_type) >> 1;
+ unsigned max_comp = mir_components_for_type(ins->dest_type);
bool first = true;
printf("#");