venus: fix swapchain image memory bind
Fixed dEQP-VK.wsi.*.swapchain.simulate_oom.image_swapchain_create_info
Fixes: 36f639375b ("venus: use STACK_ARRAY to simplify BindImageMemory2")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28790>
This commit is contained in:
@@ -768,9 +768,10 @@ vn_BindImageMemory2(VkDevice device,
|
||||
vn_image_from_handle(wsi_common_get_image(
|
||||
swapchain_info->swapchain, swapchain_info->imageIndex));
|
||||
mem = swapchain_img->wsi.memory;
|
||||
info->memory = vn_device_memory_to_handle(mem);
|
||||
#endif
|
||||
}
|
||||
assert(mem);
|
||||
assert(mem && info->memory != VK_NULL_HANDLE);
|
||||
|
||||
if (img->wsi.is_wsi)
|
||||
vn_image_bind_wsi_memory(img, mem);
|
||||
|
||||
Reference in New Issue
Block a user