[Mesa-dev] [RFC 0/7] VK_ANDROID_external_memory_android_hardware_buffer

Tapani Pälli tapani.palli at intel.com
Fri Aug 17 09:15:32 UTC 2018


Here's VK_ANDROID_external_memory_android_hardware_buffer patches with
some fixes to get more dEQP tests passing (20 pass, 5 fail, 4 not
supported). I'd be happy to get any comments on what might be still
missing. I'm planning to continue with this but wanted to send this out
in case someone wants to take a look.

Testing was done using following Android Celadon tree:

I had to also apply some changes to minigbm to get HAL_PIXEL_FORMAT_BLOB 
allocated. Currently I'm giving CPU r/w flags as usage, this needs to be 
in sync with what descriptions (format and usage) allocator supports. It 
would be interesting to know what usages we should actually support

// Tapani

Tapani Pälli (7):
  anv: make anv_get_image_format_features public
  anv: add from/to helpers with android and vulkan formats
  anv/android: add GetAndroidHardwareBufferPropertiesANDROID WIP
  anv/android: support import/export of AHardwareBuffer objects
  anv/android: add ahardwarebuffer external memory properties
  anv/android: support creating images from external format
  anv/android: turn on

 src/intel/vulkan/anv_android.c     | 258 +++++++++++++++++++++++++++++++++++++
 src/intel/vulkan/anv_device.c      |  50 ++++++-
 src/intel/vulkan/anv_extensions.py |   1 +
 src/intel/vulkan/anv_formats.c     |  41 ++++--
 src/intel/vulkan/anv_image.c       | 115 +++++++++++++++++
 src/intel/vulkan/anv_private.h     |  33 +++++
 src/intel/vulkan/vk_format_info.h  |  43 +++++++
 7 files changed, 528 insertions(+), 13 deletions(-)


More information about the mesa-dev mailing list