spirv: Use the same types for resource indices as pointers
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 12 Jan 2019 16:58:33 +0000 (10:58 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Mar 2019 16:06:50 +0000 (10:06 -0600)
commit61e009d2c4e4dfc071185f9e9c6366bc53168019
tree5138789301eff4021246e9d7d616d8fead0ec860
parent9f7ee4f8e5b2aa492804367dd64fd5497cb23d1d
spirv: Use the same types for resource indices as pointers

We need more space than just a 32-bit scalar and we have to burn all
that space anyway so we may as well expose it to the driver.  This also
fixes a subtle bug when UBOs and SSBOs have different pointer types.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/nir/nir_intrinsics.py
src/compiler/spirv/vtn_variables.c
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_vec4_nir.cpp
src/intel/vulkan/anv_nir_apply_pipeline_layout.c