anv/android: add GetAndroidHardwareBufferPropertiesANDROID
authorTapani Pälli <tapani.palli@intel.com>
Tue, 29 May 2018 06:32:25 +0000 (09:32 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 19 Dec 2018 07:38:41 +0000 (09:38 +0200)
commit1e6a44400aa2bf8d169a876ffb339418a5bdc3a0
tree7187c1544d1b400af74a62a30917282611ad47d3
parentaa94e01bfeb2d4c002c646784f9bfa7096705808
anv/android: add GetAndroidHardwareBufferPropertiesANDROID

Use the anv_format address in formats table as implementation-defined
external format identifier for now. When adding YUV format support this
might need to change.

v2: code cleanup (Jason)
v3: set anv_format address as identifier
v4: setup suggestedYcbcrModel and suggested[X|Y]ChromaOffset
    as expected for HAL_PIXEL_FORMAT_NV12_Y_TILED_INTEL
v5: set linear tiling for GPU_DATA_BUFFER usage, 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