Commit eb453b3f authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen Committed by Juan Suárez Romero

radv/android: Mark android WSI image as shareable.

Fixes: b1444c9c "radv: Implement VK_ANDROID_native_buffer."
Acked-by: Samuel Pitoiset's avatarSamuel Pitoiset <>
(cherry picked from commit 51091b3e)
parent d22db70c
......@@ -110,9 +110,19 @@ radv_image_from_gralloc(VkDevice device_h,
struct radv_bo *bo = NULL;
VkResult result;
VkImageCreateInfo updated_base_info = *base_info;
VkExternalMemoryImageCreateInfo external_memory_info = {
.pNext = updated_base_info.pNext,
updated_base_info.pNext = &external_memory_info;
result = radv_image_create(device_h,
&(struct radv_image_create_info) {
.vk_info = base_info,
.vk_info = &updated_base_info,
.scanout = true,
.no_metadata_planes = true},
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment