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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user