summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-06-06 09:12:50 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-06-10 09:42:59 -0700
commite2265926f25235f9be833984a5e365889a70ea74 (patch)
tree4171e9ceb9d1bd83bd48b3e4a172833ce55b17c4 /src/intel/vulkan/anv_private.h
parentcd21015abd134aa815398e90714631d3f6601294 (diff)
downloadexternal_mesa3d-e2265926f25235f9be833984a5e365889a70ea74.zip
external_mesa3d-e2265926f25235f9be833984a5e365889a70ea74.tar.gz
external_mesa3d-e2265926f25235f9be833984a5e365889a70ea74.tar.bz2
anv/descriptor_set: Add a type field in debug builds
This allows for some extra validation and makes it easier to see what's going on when poking around in gdb. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r--src/intel/vulkan/anv_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 26ffbd6..975cdfc 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -922,6 +922,11 @@ struct anv_vue_header {
};
struct anv_descriptor_set_binding_layout {
+#ifndef NDEBUG
+ /* The type of the descriptors in this binding */
+ VkDescriptorType type;
+#endif
+
/* Number of array elements in this binding */
uint16_t array_size;