glsl: fix struct offsets in the nir uniform linker
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 6 Feb 2020 23:55:03 +0000 (10:55 +1100)
committerMarge Bot <eric+marge@anholt.net>
Sat, 18 Apr 2020 11:50:44 +0000 (11:50 +0000)
commit3e2dbb6e7059f3ebe5a6e9f4633e923e29bcc705
tree49568d7ea9fd2bacb7dfcad06e1bf8d675651eb6
parentc19ebca308f30d09949ca66cc10ea63592fe98cf
glsl: fix struct offsets in the nir uniform linker

This change properly applies layouts to structs of uniforms in a
similar way to the GLSL IR linker.

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