vulkan/runtime: Use DMA_BUF to import anb
Switch to using DMA_BUF to import android native buffers instead of opaque FDs since more drivers (like lavapipe) can support dma bufs. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29344>
This commit is contained in:
@@ -283,7 +283,7 @@ vk_android_import_anb(struct vk_device *device,
|
||||
const VkImportMemoryFdInfoKHR import_info = {
|
||||
.sType = VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR,
|
||||
.pNext = &ded_alloc,
|
||||
.handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT,
|
||||
.handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT,
|
||||
.fd = os_dupfd_cloexec(native_buffer->handle->data[0]),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user