From 31ed467561f97624d17bb479daf331bc622b3093 Mon Sep 17 00:00:00 2001 From: nyorain Date: Mon, 8 Mar 2021 23:25:22 +0100 Subject: [PATCH] Make vulkan format query logging more consistent --- render/vulkan/pixel_format.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/render/vulkan/pixel_format.c b/render/vulkan/pixel_format.c index 87be7c2635..1188b2820c 100644 --- a/render/vulkan/pixel_format.c +++ b/render/vulkan/pixel_format.c @@ -394,21 +394,23 @@ void wlr_vk_format_props_query(struct wlr_vk_device *dev, wlr_vk_error("vkGetPhysicalDeviceImageFormatProperties2", res); } + + wlr_log(WLR_INFO, " >> shmtex: format not supported"); } else { VkExtent3D me = ifmtp.imageFormatProperties.maxExtent; props.max_extent.width = me.width; props.max_extent.height = me.height; props.features = fmtp.formatProperties.optimalTilingFeatures; - wlr_log(WLR_INFO, "vulkan: Format %.4s (0x%" PRIx32 "), " - "supported for textures", - (const char*) &format->drm_format, format->drm_format); + wlr_log(WLR_INFO, " >> shmtex: supported"); dev->shm_formats[dev->shm_format_count] = format->drm_format; ++dev->shm_format_count; add_fmt_props = true; } + } else { + wlr_log(WLR_INFO, " >> shmtex: format features not supported"); } if (add_fmt_props) {