summaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2020-04-24 14:28:58 -0400
committerMarge Bot <[email protected]>2020-04-27 18:40:03 +0000
commit065068c66aba9b32ac4c65ac91549360b5eb1b7b (patch)
treed7141f8e330eb72d6ab30e6a77ed9fb237ea8a8a /src/freedreno
parent42093bb694bdcb6fb5bb762c118520c107456f4a (diff)
freedreno/ir3: run nir_lower_pack
This lowers pack_32_2x16/unpack_32_2x16 into the scalar versions of those instructions. Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4738>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/ir3/ir3_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c
index 8a67ea637d9..c40fb43f82d 100644
--- a/src/freedreno/ir3/ir3_nir.c
+++ b/src/freedreno/ir3/ir3_nir.c
@@ -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) {