anv/android: Do not reject storage images.
authorBas Nieuwenhuizen <basni@chromium.org>
Wed, 5 Dec 2018 10:28:12 +0000 (11:28 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 7 Jan 2019 14:20:55 +0000 (15:20 +0100)
commit110564fdecd0948e7aa9b1a607af7631430092ff
tree20501accf58d426747e87f2982ad8f51bd8f55e8
parent9a45a190ad22849a492506389413046948e0b093
anv/android: Do not reject storage images.

We do the ImageFormatProperties check already, and rejecting an usage
flag when both ImageFormatProperties and the WSI (which is Android)
support it is not allowed.

Intel does support storage for some of the support WSI formats, such
as R8G8B8A8_UNORM, and looking at the ISL_SURF_USAGE_DISABLE_AUX_BIT,
the imported images do not have any form of compression that would
prevent this fix.

v2: Also consider STORAGE bit for Gralloc usage bits.
     (From Kevin Strasser <kevin.strasser@intel.com>)

Fixes: 053d4c328fa "anv: Implement VK_ANDROID_native_buffer (v9)"
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/intel/vulkan/anv_android.c