summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_print.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-03-25 10:17:28 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-14 17:20:05 -0700
commitc825e29a826bf9f03303d1527a2aeef8bcd80dea (patch)
tree46d92b2839967cc3698d9c2da709a348cdbe537e /src/compiler/nir/nir_print.c
parent1e0012e3e41e09c33f7f9d6671a803b7b0a7d9b8 (diff)
downloadexternal_mesa3d-c825e29a826bf9f03303d1527a2aeef8bcd80dea.zip
external_mesa3d-c825e29a826bf9f03303d1527a2aeef8bcd80dea.tar.gz
external_mesa3d-c825e29a826bf9f03303d1527a2aeef8bcd80dea.tar.bz2
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>
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-rw-r--r--src/compiler/nir/nir_print.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index bbb4edf..84e9269 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -518,6 +518,8 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state)
[NIR_INTRINSIC_STREAM_ID] = "stream-id",
[NIR_INTRINSIC_UCP_ID] = "ucp-id",
[NIR_INTRINSIC_RANGE] = "range",
+ [NIR_INTRINSIC_DESC_SET] = "desc-set",
+ [NIR_INTRINSIC_BINDING] = "binding",
};
for (unsigned idx = 1; idx < NIR_INTRINSIC_NUM_INDEX_FLAGS; idx++) {
if (!info->index_map[idx])