lvp: fix wsi platform swapchain image bind
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

The prior incomplete ANB support broke it.

Fixes: 0dce939e6d ("lavapipe: Add android platform integration")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35506>
This commit is contained in:
Yiwei Zhang 2025-06-06 13:30:28 -07:00 committed by Marge Bot
parent 7d974c32ce
commit 6781dcc565

View file

@ -2359,10 +2359,6 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_BindImageMemory2(VkDevice _device,
VkBindMemoryStatusKHR *status = (void*)vk_find_struct_const(&pBindInfos[i], BIND_MEMORY_STATUS_KHR);
bool did_bind = false;
if (!mem) {
continue;
}
#ifdef LVP_USE_WSI_PLATFORM
vk_foreach_struct_const(s, bind_info->pNext) {
switch (s->sType) {
@ -2392,6 +2388,10 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_BindImageMemory2(VkDevice _device,
#endif
if (!did_bind) {
if (!mem) {
continue;
}
uint64_t offset_B = 0;
VkResult result;
if (image->disjoint) {