v3d/compiler: implement nir_intrinsic_get_ubo_size

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga
2020-08-26 11:58:47 +02:00
committed by Marge Bot
parent f4c754bcd1
commit d93d903a37
3 changed files with 12 additions and 1 deletions

View File

@@ -251,8 +251,9 @@ enum quniform_contents {
/* Returns the base offset of the SSBO given by the data value. */
QUNIFORM_SSBO_OFFSET,
/* Returns the size of the SSBO given by the data value. */
/* Returns the size of the SSBO or UBO given by the data value. */
QUNIFORM_GET_BUFFER_SIZE,
QUNIFORM_GET_UBO_SIZE,
/* Sizes (in pixels) of a shader image given by the data value. */
QUNIFORM_IMAGE_WIDTH,