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