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

master
Simon Ser 2 months ago committed by Kirill Primak
parent a8d1e5273a
commit d55c175777

@ -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;
} }

Loading…
Cancel
Save