mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
radv/android: Mark android WSI image as shareable.
Fixes:b1444c9ccb"radv: Implement VK_ANDROID_native_buffer." Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> (cherry picked from commit51091b3e1f)
This commit is contained in:
parent
d22db70cea
commit
eb453b3f9d
1 changed files with 11 additions and 1 deletions
|
|
@ -110,9 +110,19 @@ radv_image_from_gralloc(VkDevice device_h,
|
||||||
struct radv_bo *bo = NULL;
|
struct radv_bo *bo = NULL;
|
||||||
VkResult result;
|
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,
|
result = radv_image_create(device_h,
|
||||||
&(struct radv_image_create_info) {
|
&(struct radv_image_create_info) {
|
||||||
.vk_info = base_info,
|
.vk_info = &updated_base_info,
|
||||||
.scanout = true,
|
.scanout = true,
|
||||||
.no_metadata_planes = true},
|
.no_metadata_planes = true},
|
||||||
alloc,
|
alloc,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue