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>
This commit is contained in:
Icecream95 2020-06-20 18:20:59 +12:00 committed by Marge Bot
parent 5b351c801e
commit b96d4449f4

View file

@ -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("#");