Mesa (master): pan/mdg: Fix max_comp calculation for constant printing
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 22 12:28:54 UTC 2020
Module: Mesa
Branch: master
Commit: b96d4449f4478a677f222343303eee6ad514b4f7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b96d4449f4478a677f222343303eee6ad514b4f7
Author: Icecream95 <ixn at keemail.me>
Date: Sat Jun 20 18:20:59 2020 +1200
pan/mdg: Fix max_comp calculation for constant printing
Reviewed-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5573>
---
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("#");
More information about the mesa-commit
mailing list