anv/android: support import/export of AHardwareBuffer objects
authorTapani Pälli <tapani.palli@intel.com>
Thu, 8 Nov 2018 08:20:35 +0000 (10:20 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 19 Dec 2018 07:38:41 +0000 (09:38 +0200)
commitc79a528d2b58dfa6f3d856271cbf29697a5322a1
tree2f685992a3e78e96671c7a55c71858f8f5c5189a
parent5c65c60d6c9120b2704e8767f3381faef97c4052
anv/android: support import/export of AHardwareBuffer objects

v2: add support for non-image buffers (AHARDWAREBUFFER_FORMAT_BLOB)
v3: properly handle usage bits when creating from image
v4: refactor, code cleanup (Jason)
v5: rebase to b43f955037c changes,
    initialize bo flags as ANV_BO_EXTERNAL (Lionel)
v6: add assert that anv_bo_cache_import succeeds, add comment
    about multi-bo support to clarify current implementation (Lionel)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_android.c
src/intel/vulkan/anv_android.h
src/intel/vulkan/anv_android_stubs.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h