mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 00:22:25 +00:00
render/vulkan: log size when importing too-large DMA-BUF
This commit is contained in:
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 ||
|
||||
(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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user