[Mesa-dev] [PATCH 0/1] VK_ANDROID_native_buffer RFC
Tapani Pälli
tapani.palli at intel.com
Thu Aug 31 10:25:22 UTC 2017
Hi;
Here's a rebased and fixed version of VK_ANDROID_native_buffer
extension implementation. I did a initial implementation of this
around 7 months ago here:
https://github.com/tpalli/external-mesa/tree/vulkan
For a number of reasons we decided for that code to live in our
Vulkan HAL implementation instead (which is used currently):
https://github.com/intel/external-vulkan_hal
Now as I noticed familiar patches from Louis-Francis removing the
precious vkCreateDmaBufImageINTEL() function, I've decided to send
this for comments or just generic mockery. The CreateImage part
could be changed to use VK_KHX_external_memory_fd, like I've done
here for HAL:
https://github.com/tpalli/external-vulkan_hal/tree/new-image-import
but I've been blocked waiting for VK_MESAX_external_memory_dma_buf
to materialize, could use 'get_tiling ioctl' though.
Any comments appreciated;
Tapani Pälli (1):
android: VK_ANDROID_native_buffer implementation WIP
Android.common.mk | 3 ++
include/vulkan/vulkan_intel.h | 12 +++++
src/intel/Android.vulkan.mk | 4 +-
src/intel/Makefile.sources | 3 ++
src/intel/vulkan/anv_entrypoints_gen.py | 24 ++++++++++
src/intel/vulkan/anv_extensions.py | 1 +
src/intel/vulkan/anv_image.c | 69 +++++++++++++++++++++++++++
src/intel/vulkan/anv_wsi_android.c | 82 +++++++++++++++++++++++++++++++++
src/vulkan/registry/vk.xml | 2 +-
9 files changed, 198 insertions(+), 2 deletions(-)
create mode 100644 src/intel/vulkan/anv_wsi_android.c
--
2.13.5
More information about the mesa-dev
mailing list