nir_to_tgsi: Don't forget to add sampler views with our samplers.
authorEmma Anholt <emma@anholt.net>
Wed, 8 Sep 2021 22:17:23 +0000 (15:17 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 9 Sep 2021 22:02:52 +0000 (22:02 +0000)
commit4a4a889de3dc1c0c1d7e446992ae442f74f3a0c2
tree818013a3d91cc89941a8d4435eb82e7eafa0c193
parent947f585e91000f5cdd94626b7903de8232fdba77
nir_to_tgsi: Don't forget to add sampler views with our samplers.

While softpipe and i915 didn't really care, virgl very much does.
tgsi_scan also insisted that the texture ops and the decls matched, which
led to deduplicating the switch statemnts.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12781>
src/gallium/auxiliary/nir/nir_to_tgsi.c