glsl: correctly find block index when linking glsl with nir linker
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 3 Feb 2020 23:00:39 +0000 (10:00 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:22:14 +0000 (23:22 +0000)
commita02d8e040fb6cbf43a75932104e2b49807723280
treeb68d8e40ba73649d011482225b752e2dc35e8d28
parent10b816d27e2e9f744a29beec294774c1d24f4f54
glsl: correctly find block index when linking glsl with nir linker

The existing code for spirv expects all vars to have explicit
bindings set which is not true for glsl.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4050>
src/compiler/glsl/gl_nir_link_uniforms.c