render/vulkan: log size when importing too-large DMA-BUF

This commit is contained in:
Simon Ser 2024-09-29 16:35:07 +02:00 committed by Kirill Primak
parent a8d1e5273a
commit d55c175777

View File

@ -534,7 +534,8 @@ VkImage vulkan_import_dmabuf(struct wlr_vk_renderer *renderer,
if ((uint32_t) attribs->width > mod->max_extent.width || if ((uint32_t) attribs->width > mod->max_extent.width ||
(uint32_t) attribs->height > mod->max_extent.height) { (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; return VK_NULL_HANDLE;
} }