pan/mdg: Treat packs "specially"
[mesa.git] / src / panfrost / midgard / midgard_ra.c
index 8c6210e0634283a88b59685af4029dcc83fd4a85..112485b8b837a70a217ecdc68df0210dbf05b7f5 100644 (file)
@@ -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);