nir: add glsl_get_std430_base_alignment() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Jan 2020 03:44:43 +0000 (14:44 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:22:14 +0000 (23:22 +0000)
commita005f1a6e7b7f885a6168f6ea94d992d03fafe6d
treec1e20b3a3c94bde645c6de09d6c844900d611c07
parent1ccfe821b2244d6880b2aac6641f312c7171dc49
nir: add glsl_get_std430_base_alignment() helper

This will be used by the nir glsl linker for linking uniforms.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4050>
src/compiler/nir_types.cpp
src/compiler/nir_types.h