nir-to-tgsi: Avoid emitting TXL just for lod 0 on non-vertex shaders.
authorEmma Anholt <emma@anholt.net>
Thu, 29 Jul 2021 21:59:11 +0000 (14:59 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 Oct 2021 03:44:17 +0000 (03:44 +0000)
commit7dde279db595cf8982c5c519c16d56b27489e770
tree221695bcf48599e799c27ab8f1f8a570ab3b6684
parentc3c560089eabbfe179578fd7a5c73aafd1f05198
nir-to-tgsi: Avoid emitting TXL just for lod 0 on non-vertex shaders.

Prompted by comparing virgl fails and finding that it has issues with
immediate args to TXL/TXB, at least.

Acked-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12800>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_tex.c
src/gallium/auxiliary/nir/nir_to_tgsi.c