mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 23:40:12 +01:00
lvp: fix wsi platform swapchain image bind
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:
parent
7d974c32ce
commit
6781dcc565
1 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue