glsl: find the base offset for block members from unnamed blocks
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 17 Jan 2020 01:07:11 +0000 (12:07 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:22:14 +0000 (23:22 +0000)
commit8ffd09f3114233f742e8cfd142c74ea3477c4c59
treed8182055ede3cd7b1b44a12eb60eb211991ab99e
parent76ce7752403912642cd00905f1d7a5f8bf21d219
glsl: find the base offset for block members from unnamed blocks

These block member have been split into individual vars so we need
to set the correct offsets for each member in the new glsl nir
linker. We also take this opportunity to set the correct location
for the variable.

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