nir: get res binding using component 0, instead of asssumig an uint
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 10 Mar 2022 11:34:45 +0000 (12:34 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Jun 2022 13:12:46 +0000 (13:12 +0000)
commit481df13f2726afd6ff9cbe4043d006023162be34
tree8df91ea8b4b1e2bdd4f019a5d61b31ff12fa2778
parentd364d445ad7b491ebd8bcf991799fb38437541a0
nir: get res binding using component 0, instead of asssumig an uint

Needed to be able to call nir_opt_gcm on the v3dv driver. This change
is needed as on v3dv we honor vulkan resource index returning a vec2.

See commit 21b0a4c80c5f8dd9cdfac7e6b591d6912ba18cf5 for more info.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16986>
src/compiler/nir/nir.c