From d55c175777a771b326d5eac2343b7686c9117a4e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 29 Sep 2024 16:35:07 +0200 Subject: [PATCH] render/vulkan: log size when importing too-large DMA-BUF --- render/vulkan/texture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/render/vulkan/texture.c b/render/vulkan/texture.c index c4053313..2a4f60c5 100644 --- a/render/vulkan/texture.c +++ b/render/vulkan/texture.c @@ -534,7 +534,8 @@ VkImage vulkan_import_dmabuf(struct wlr_vk_renderer *renderer, if ((uint32_t) attribs->width > mod->max_extent.width || (uint32_t) attribs->height > mod->max_extent.height) { - wlr_log(WLR_ERROR, "DMA-BUF is too large to import"); + wlr_log(WLR_ERROR, "DMA-BUF is too large to import (%"PRIi32"x%"PRIi32" > %"PRIu32"x%"PRIu32")", + attribs->width, attribs->height, mod->max_extent.width, mod->max_extent.height); return VK_NULL_HANDLE; }