Commit 51091b3e authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen Committed by Bas Nieuwenhuizen

radv/android: Mark android WSI image as shareable.

Fixes: b1444c9c "radv: Implement VK_ANDROID_native_buffer."
Acked-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
parent dd53bb7e
......@@ -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 = {
.sType = VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO,
.pNext = updated_base_info.pNext,
.handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT,
};
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},
alloc,
......
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