glsl: add std140 and std430 layouts to nir uniform linker
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 17 Jan 2020 01:02:26 +0000 (12:02 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:22:14 +0000 (23:22 +0000)
commit590a59437fdbc5929934aa55385186154b0ee537
tree1e91c0b4418ab2d752efbbffdc112980df94697c
parent858a49a10d0e44a7e7f019137562c0d4cfbfab85
glsl: add std140 and std430 layouts to nir uniform linker

The current ARB_gl_spirv linking only supports explicit layouts so
we need to update it to support std140 and std430 layouts before
we can use the linker 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