glsl: correctly set explicit offsets for struct members
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 21 Jan 2020 03:57:37 +0000 (14:57 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:22:14 +0000 (23:22 +0000)
commit76ce7752403912642cd00905f1d7a5f8bf21d219
treef499e475ea0ad2814f26302b52625c7a33cd7538
parent590a59437fdbc5929934aa55385186154b0ee537
glsl: correctly set explicit offsets for struct members

This correctly sets offsets set in glsl when using the nir linker.

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