This patch adds support for nir_texop_txs instructions which are needed to support the OpenGL textureSize() function. This is also needed to support RECT texture sampling which is currently lowered to 2D sampling + a TXS() instruction by the nir_lower_tex() helper.
Changes in v2:
- Split options for the 1st and 2nd tex lowering passes
c3558868dae panfrost: Add support for TXS instructions
.../drivers/panfrost/midgard/midgard_compile.c | 25 +++++++++++++++++--
.../drivers/panfrost/midgard/midgard_compile.h | 8 ++++++
src/gallium/drivers/panfrost/pan_context.c | 29 ++++++++++++++++++++++
3 files changed, 60 insertions(+), 2 deletions(-)