Skip to content

venus: clarify wsi image ownership

Yiwei Zhang requested to merge zzyiwei/mesa:vn-wsi-img-bind-refactor into main

What does this MR do and why?

venus: clarify wsi image ownership

Fix to call vn_image_bind_wsi_memory as long as the image is a wsi
image. This is needed so that we track the wsi memory in the wsi image
so that creating from swapchain info works normally on x11/wayland
platforms. This change also make it clear that ANB image owns the wsi
memory

Fixes: c4b30b604fd ("venus: support VK_ANDROID_NATIVE_BUFFER_SPEC_VERSION 8")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>

/cc @ryanneph @justonli

Edited by Yiwei Zhang

Merge request reports