glsl: fix block index in NIR uniform linker
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 10 Mar 2020 01:55:53 +0000 (12:55 +1100)
committerMarge Bot <eric+marge@anholt.net>
Sat, 18 Apr 2020 11:50:44 +0000 (11:50 +0000)
commit5d992b539e977ac688e950866a1d872de5acec18
treea9dcb802624bbaf6281e7f080e9ff0c274d81974
parent5dbebf49822ff3fb3bc3e6123bac30214c432b77
glsl: fix block index in NIR uniform linker

We only want to set the index for the first block of an array. Also
add a comment about why we do not break here.

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