Mesa (master): freedreno/ir3: run nir_lower_pack

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Apr 27 19:04:38 UTC 2020


Module: Mesa
Branch: master
Commit: 065068c66aba9b32ac4c65ac91549360b5eb1b7b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=065068c66aba9b32ac4c65ac91549360b5eb1b7b

Author: Jonathan Marek <jonathan at marek.ca>
Date:   Fri Apr 24 14:28:58 2020 -0400

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 <jonathan at marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4738>

---

 src/freedreno/ir3/ir3_nir.c | 1 +
 1 file changed, 1 insertion(+)

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) {



More information about the mesa-commit mailing list