[Mesa-dev] [PATCH] anv: Print the actual enum for ignored structure types
Tapani Pälli
tapani.palli at intel.com
Wed Jun 27 06:37:38 UTC 2018
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 06/26/2018 11:33 PM, Jason Ekstrand wrote:
> ---
> src/intel/vulkan/anv_private.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
> index 33ae9fb82f2..3967f8de265 100644
> --- a/src/intel/vulkan/anv_private.h
> +++ b/src/intel/vulkan/anv_private.h
> @@ -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,
>
More information about the mesa-dev
mailing list