panfrost: Use txl instead of tex in the blitter
authorAlyssa Rosenzweig <alyssa@collabora.com>
Sat, 12 Feb 2022 19:15:17 +0000 (14:15 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 23 Feb 2022 12:56:30 +0000 (12:56 +0000)
commit099d61c95d0961804ff08ac1ea32437bb43f1740
treed9869c749e4d3ec958ac3817160d65a2c38b3295
parent5b1a00c5659a9dd824966e7ebcafe7e23c8916e2
panfrost: Use txl instead of tex in the blitter

We always blit from a particular level, so it's a waste to compute the LOD.
This corresponds to a simple texture instruction with implement 0 LOD, which is
the optimal texturing path on Bifrost -- it maps to TEXS_2D but does not require
helper invocations.

Functional change on Bifrost: Blit shaders no longer set .computed_lod or
shader_contains_barrier.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15123>
src/panfrost/lib/pan_blitter.c
src/panfrost/midgard/midgard_compile.c