Skip to content

radv: delay image layout when importing DMA-BUF

Simon Ser requested to merge emersion/mesa:radv-import-recreate-layout into master

When importing a DMA-BUF, the image layout created in vkImageCreate may not match the imported BO's. Avoiding having a mismatch by delaying the image's layout in radv_image_create and creating it from the DMA-BUF in radv_alloc_memory.

A similar logic exists inside radv_import_ahb_memory to handle VK_EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID.

Signed-off-by: Simon Ser contact@emersion.fr Closes: #2801 (closed)

Edited by Simon Ser

Merge request reports