wsi: correct the erroneous assertion

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15452
Fixes: d50937f137 ("vulkan/wsi: Implement prime in a completely generic way")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41647>
This commit is contained in:
UMUTech 2026-05-18 20:59:52 +08:00 committed by Marge Bot
parent d0253e25c4
commit 3d71e6553e

View file

@ -2738,7 +2738,7 @@ wsi_create_buffer_blit_context(const struct wsi_swapchain *chain,
VkMemoryRequirements reqs;
wsi->GetBufferMemoryRequirements(chain->device, image->blit.buffer, &reqs);
assert(reqs.size <= info->linear_size);
assert(reqs.size >= info->linear_size);
struct wsi_memory_allocate_info memory_wsi_info = {
.sType = VK_STRUCTURE_TYPE_WSI_MEMORY_ALLOCATE_INFO_MESA,