nir: add is_in_ubo/ssbo/block helpers
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 11 Sep 2018 10:40:08 +0000 (12:40 +0200)
committerArcady Goldmints-Orlov <agoldmints@igalia.com>
Sun, 30 Jun 2019 21:58:26 +0000 (16:58 -0500)
commit12355c7e910222d97ecf23567e6f17841993acfe
tree7d542cf7f8686d15999ce85c784b5614ecdd6e38
parent15f134412f690e3c23f5f3a14de2e4cd38dde852
nir: add is_in_ubo/ssbo/block helpers

Equivalent to the already existing ir_variable is_in_buffer_block and
is_in_shader_storage_block, adding the uniform buffer object one. I'm
using the short forms (ssbo, ubo) to avoid having method names too
long.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir.h