nir: fix invalid sampler search by texture id
authorIllia Polishchuk <illia.a.polishchuk@globallogic.com>
Mon, 11 Sep 2023 13:10:57 +0000 (16:10 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 15:44:52 +0000 (15:44 +0000)
commitb8a54c50a6a425e95a3ce72986a32b630729814a
tree31f7a9d437cdb14182991b9515c1b8bfadc80187
parent5a7044d0bc9376aa67d74b735aab425790d8a935
nir: fix invalid sampler search by texture id

Sampler id cannot be mapped to a uniform object location

Fixes: 1a8dd84ec61 ("nir: Propagate the type sampler type change to the used variable.")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9793

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Signed-off-by: Illia Polishchuk <illia.a.polishchuk@globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25145>
src/compiler/nir/nir_remove_tex_shadow.c