panfrost/midgard: Lower texture projectors

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@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-06-11 09:51:29 -07:00
parent 4012e06788
commit 6ae4f9c523

View file

@ -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);