venus: handle wsi image queue ownership transfer for Android

Graphics / Mesa 3D Graphics Library / Mesa - Yiwei Zhang [chromium.org] - 29 April 2021 17:33 UTC

1. pre-allocate command pools at device creation if anb enabled 2. force VK_SHARING_MODE_CONCURRENT for wsi image if necessary 3. pre-allocate and record command buffers at android wsi image creation 4. transfer in the ownership at vkAcquireImageANDROID 5. transfer out the ownership at vkQueueSignalReleaseImageANDROID

96ec6b3d8fa venus: handle wsi image queue ownership transfer for Android
src/virtio/vulkan/vn_android.c | 179 +++++++++++++++++++++++++++++++++++++++--
src/virtio/vulkan/vn_android.h | 35 ++++++++
src/virtio/vulkan/vn_device.c | 9 +++
src/virtio/vulkan/vn_device.h | 2 +
src/virtio/vulkan/vn_image.c | 152 ++++++++++++++++++++++++++++++++++
src/virtio/vulkan/vn_image.h | 18 +++++
6 files changed, 388 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share