Skip to content
Snippets Groups Projects
Commit 809b4d13 authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Dylan Baker
Browse files

anv/android: handle image bindings from gralloc buffers


When creating an image out of a swapchain on Android, the android
layer call will detect a VkBindImageMemorySwapchainInfoKHR in the
pNext chain of the vkBindImageMemory2() call and add a
VkNativeBufferANDROID in the chain. This is what we should use as
backing memory for that image.

v2: Fix a couple of obvious mistakes (Tapani)

v3: Silence build warning (Lionel)
    Fix invalid object argument to vk_error() (Lionel)

Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: bc3c71b8 ("anv: don't try to access Android swapchains")
Cc: mesa-stable
Closes: mesa/mesa#5180


Reviewed-by: default avatarTapani Pälli <tapani.palli@intel.com>
Part-of: <mesa/mesa!12244>
(cherry picked from commit 19b7bbba)
parent ac87f88c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment