spirv: Use interface type for block and buffer block
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 21 Mar 2019 20:26:48 +0000 (13:26 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 23 Mar 2019 17:22:39 +0000 (10:22 -0700)
commit9d0ae777dd68dad682dcc7768726996639ae2684
tree16a457991e72da2c4d77985a0038920a71dce40f
parentfb024f5e72014efea5007684c7e61cd31a2cd9c8
spirv: Use interface type for block and buffer block

Also handle GLSL_TYPE_INTERFACE the same way we do GLSL_TYPE_STRUCT in
various places.  Motivated by ARB_gl_spirv work, that will take
advantage of the interface types when handling NIR coming from SPIR-V.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_variables.c