anv: Print the actual enum for ignored structure types
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 26 Jun 2018 20:33:29 +0000 (13:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Jun 2018 19:43:18 +0000 (12:43 -0700)
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/intel/vulkan/anv_private.h

index 510471da6026d3c3bc856520a608bd1f61684693..8b2e4bbdf087536c93322db6ffd990ec63f5cd5c 100644 (file)
@@ -57,6 +57,7 @@
 #include "util/vma.h"
 #include "vk_alloc.h"
 #include "vk_debug_report.h"
+#include "vk_enum_to_str.h"
 
 /* Pre-declarations needed for WSI entrypoints */
 struct wl_surface;
@@ -412,7 +413,8 @@ VkResult __vk_errorf(struct anv_instance *instance, const void *object,
  *    defined by extensions supported by that component.
  */
 #define anv_debug_ignored_stype(sType) \
-   intel_logd("%s: ignored VkStructureType %u\n", __func__, (sType))
+   intel_logd("%s: ignored VkStructureType %s\n", __func__, \
+              vk_StructureType_to_str(sType))
 
 void __anv_perf_warn(struct anv_instance *instance, const void *object,
                      VkDebugReportObjectTypeEXT type, const char *file,