nir: add glsl_get_std140_size() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Jan 2020 03:43:30 +0000 (14:43 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:22:14 +0000 (23:22 +0000)
commit1ccfe821b2244d6880b2aac6641f312c7171dc49
treef4903b84d5369fcdfc362f818174e27da2a074de
parent120a26c6f25905474464661e351e36a4c7c76aea
nir: add glsl_get_std140_size() 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