nir: Add a vulkan_resource_reindex intrinsic

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [intel.com] - 6 December 2017 06:01 EST

This is required for being able to handle OpPtrAccessChain in SPIR-V where the base type of the incoming pointer requires us to add to the block index instead of the byte offset.

cfb81f58a0 nir: Add a vulkan_resource_reindex intrinsic
src/compiler/nir/nir_intrinsics.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share