nir/intrinsics: Add a vulkan_resource_index intrinsic
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 25 Mar 2016 17:17:28 +0000 (10:17 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Apr 2016 00:20:05 +0000 (17:20 -0700)
commitc825e29a826bf9f03303d1527a2aeef8bcd80dea
tree46d92b2839967cc3698d9c2da709a348cdbe537e
parent1e0012e3e41e09c33f7f9d6671a803b7b0a7d9b8
nir/intrinsics: Add a vulkan_resource_index intrinsic

This is used to facilitate the Vulkan binding model where each resource is
described by a (descriptor set, binding, array index) tuple.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_intrinsics.h
src/compiler/nir/nir_print.c