nir: add a nir_get_ubo_size intrinsic

Graphics / Mesa 3D Graphics Library / Mesa - Iago Toral Quiroga [igalia.com] - 13 October 2020 21:21 UTC

This is the same as nir_get_buffer_size but geared towards UBOs instead of SSBOs. The new intrinsic is useful in Vulkan backends that need to add bound checks on buffer accesses to honor the robust buffer access feature.

f4c754bcd13 nir: add a nir_get_ubo_size intrinsic
src/compiler/nir/nir_intrinsics.py | 2 ++
1 file changed, 2 insertions(+)

Upstream: cgit.freedesktop.org


  • Share