Module: Mesa Branch: master Commit: c57337bbd3e3620bcb0f38d23f43ea58c382737d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c57337bbd3e3620bcb0f38d23f43ea58c382737d
Author: Alyssa Rosenzweig <[email protected]> Date: Thu Dec 19 11:12:50 2019 -0500 pan/midgard: Lower txd with lower_tex This is a hack since we do have native gradient stuff, but for the moment I'm more interested in conformance and the lowered code is good enough. Fixes dEQP-GLES3.functional.shaders.texture_functions.texturegrad.sampler2d_fixed_fragment Signed-off-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3169> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3169> --- src/panfrost/midgard/midgard_compile.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index ab62770c69e..1e28b08e77d 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -494,7 +494,6 @@ optimise_nir(nir_shader *nir, unsigned quirks) (nir->options->lower_flrp64 ? 64 : 0); NIR_PASS(progress, nir, nir_lower_regs_to_ssa); - NIR_PASS(progress, nir, midgard_nir_lower_fdot2); NIR_PASS(progress, nir, nir_lower_idiv, nir_lower_idiv_fast); nir_lower_tex_options lower_tex_options = { @@ -502,10 +501,16 @@ optimise_nir(nir_shader *nir, unsigned quirks) .lower_txp = ~0, .lower_tex_without_implicit_lod = (quirks & MIDGARD_EXPLICIT_LOD), + + /* TODO: we have native gradient.. */ + .lower_txd = true, }; NIR_PASS(progress, nir, nir_lower_tex, &lower_tex_options); + /* Must lower fdot2 after tex is lowered */ + NIR_PASS(progress, nir, midgard_nir_lower_fdot2); + /* T720 is broken. */ if (quirks & MIDGARD_BROKEN_LOD) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
