pan/bi: Use pan_nir_lower_64bit_intrin
authorIcecream95 <ixn@disroot.org>
Tue, 5 Jan 2021 05:15:47 +0000 (18:15 +1300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 18 Jan 2021 20:49:45 +0000 (20:49 +0000)
The intrinsics covered by the pass are implemented by reading 32-bit
registers, so there is no reason to keep them 64-bit.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8358>

src/panfrost/bifrost/bifrost_compile.c

index c9208c6..35292e6 100644 (file)
@@ -2137,6 +2137,8 @@ bi_optimize_nir(nir_shader *nir)
                 .lower_txd = true,
         };
 
+        NIR_PASS(progress, nir, pan_nir_lower_64bit_intrin);
+
         NIR_PASS(progress, nir, nir_lower_int64);
 
         NIR_PASS(progress, nir, nir_lower_tex, &lower_tex_options);