[Mesa-dev] [PATCH 3/6] panfrost/midgard: Lower texture projectors

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Tue Jun 11 17:53:25 UTC 2019


We do have native support for perspective division on the load/store
unit, but this is for the future, something ideally we would select
generally, not just for textures. Meanwhile, flipping on projector
lowering works now.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
 src/gallium/drivers/panfrost/midgard/midgard_compile.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
index 5ccb2ef4837..c328d2d69f9 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
@@ -356,7 +356,8 @@ optimise_nir(nir_shader *nir)
         NIR_PASS(progress, nir, nir_lower_idiv);
 
         nir_lower_tex_options lower_tex_options = {
-                .lower_rect = true
+                .lower_rect = true,
+                .lower_txp = ~0
         };
 
         NIR_PASS(progress, nir, nir_lower_tex, &lower_tex_options);
-- 
2.20.1



More information about the mesa-dev mailing list