mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-22 05:34:24 -04:00
render/vulkan: log max size
This commit is contained in:
parent
1cd53f54b7
commit
f52482d23a
1 changed files with 2 additions and 1 deletions
|
|
@ -468,7 +468,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, "dmabuf is too large to import");
|
wlr_log(WLR_ERROR, "Size (%dx%d) is larger than maximum (%"PRIu32"x%"PRIu32")",
|
||||||
|
attribs->width, attribs->height, mod->max_extent.width, mod->max_extent.height);
|
||||||
return VK_NULL_HANDLE;
|
return VK_NULL_HANDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue