nir: add glsl_get_std430_size() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Jan 2020 03:46:04 +0000 (14:46 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:22:14 +0000 (23:22 +0000)
commit858a49a10d0e44a7e7f019137562c0d4cfbfab85
treee9252939d08117a0d9a42e1d79ae97edd85c779a
parenta005f1a6e7b7f885a6168f6ea94d992d03fafe6d
nir: add glsl_get_std430_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