tgsi_to_nir: set num_images and num_samplers with holes correctly
authorMarek Olšák <marek.olsak@amd.com>
Mon, 24 Feb 2020 23:16:48 +0000 (18:16 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 26 Feb 2020 19:49:25 +0000 (19:49 +0000)
commitc798aae7390f20e74b8ebb09113e806b410ac7a7
treea69b2111d179c3be409a77712eec98013da30c4f
parent349898a967f1bf28271454d88b3f1a36a4db2e06
tgsi_to_nir: set num_images and num_samplers with holes correctly

This fixes the copy_uv shader from st/omx, because it uses image 0 and 2
and image 1 isn't declared.

Cc: 20.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3936>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3936>
src/gallium/auxiliary/nir/tgsi_to_nir.c