diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-06-11 09:51:29 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-12 14:31:53 -0700 |
commit | 6ae4f9c523c8f5ae6e31360c2aaa2ff02102bafd (patch) | |
tree | 4b4c7450a91e9ceb2517fcffd5a4c2c6045a1c2f | |
parent | 4012e067880a6512d90e95d75b5349edcb627656 (diff) |
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 <[email protected]>
-rw-r--r-- | src/gallium/drivers/panfrost/midgard/midgard_compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index eacf84e89e6..1e1da1db060 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); |