aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_ra.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-13 18:41:52 -0400
committerMarge Bot <[email protected]>2020-06-01 15:46:23 +0000
commite9c780b1d08092880a1ad769fffbad571f094c46 (patch)
tree4595ea66f00f93d1dfd0183e0dc46580a4b99adc /src/panfrost/midgard/midgard_ra.c
parentc495c6c2957c7c30cedeaa218c2caf443ac04797 (diff)
pan/mdg: Treat packs "specially"
We maybe would prefer synthetic ops? We'll find out in due time.. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5265>
Diffstat (limited to 'src/panfrost/midgard/midgard_ra.c')
-rw-r--r--src/panfrost/midgard/midgard_ra.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c
index 8c6210e0634..112485b8b83 100644
--- a/src/panfrost/midgard/midgard_ra.c
+++ b/src/panfrost/midgard/midgard_ra.c
@@ -511,6 +511,9 @@ allocate_registers(compiler_context *ctx, bool *spilled)
unsigned size = nir_alu_type_get_type_size(ins->dest_type);
+ if (ins->is_pack)
+ size = 32;
+
/* 0 for x, 1 for xy, 2 for xyz, 3 for xyzw */
int comps1 = util_logbase2(ins->mask);