From b96d4449f4478a677f222343303eee6ad514b4f7 Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Sat, 20 Jun 2020 18:20:59 +1200 Subject: [PATCH] pan/mdg: Fix max_comp calculation for constant printing Reviewed-by: Tomeu Vizoso Part-of: --- src/panfrost/midgard/midgard_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("#"); -- 2.30.2