freedreno/ir3: run nir_lower_pack
authorJonathan Marek <jonathan@marek.ca>
Fri, 24 Apr 2020 18:28:58 +0000 (14:28 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Apr 2020 18:40:03 +0000 (18:40 +0000)
This lowers pack_32_2x16/unpack_32_2x16 into the scalar versions of those
instructions.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4738>

src/freedreno/ir3/ir3_nir.c

index 8a67ea637d977900257d6c7ed2b07a63481479f0..c40fb43f82dd077871414655dac023c3464b57f4 100644 (file)
@@ -176,6 +176,7 @@ ir3_optimize_loop(nir_shader *s)
                progress |= OPT(s, nir_opt_intrinsics);
                progress |= OPT(s, nir_opt_algebraic);
                progress |= OPT(s, nir_lower_alu);
+               progress |= OPT(s, nir_lower_pack);
                progress |= OPT(s, nir_opt_constant_folding);
 
                if (lower_flrp != 0) {