nir: add glsl_get_std140_base_alignment() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Jan 2020 03:01:42 +0000 (14:01 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:22:14 +0000 (23:22 +0000)
commit120a26c6f25905474464661e351e36a4c7c76aea
treea92673fd400632309a4857d78e32d735cf0c7c83
parent262b611a5bb08ebb8d2876bc44a44952d610a248
nir: add glsl_get_std140_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