anv: do not advertise AHW support if extension not enabled
authorTapani Pälli <tapani.palli@intel.com>
Wed, 16 Jan 2019 12:15:28 +0000 (14:15 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 17 Jan 2019 05:22:02 +0000 (07:22 +0200)
commita311aa631d2037447f2bc38e8ab60707b0d3be3b
tree30ec4b8fdeb1b3efef393e7f205cdfd023a35b95
parent99ef66c325a99b3e191987d8327e7e4cd4aafcd7
anv: do not advertise AHW support if extension not enabled

Fixes following failing vk-gl-cts cases on Linux desktop:

   dEQP-VK.api.external.memory.android_hardware_buffer.suballocated.buffer.info
   dEQP-VK.api.external.memory.android_hardware_buffer.suballocated.image.info
   dEQP-VK.api.external.memory.android_hardware_buffer.dedicated.image.info
   dEQP-VK.api.external.memory.android_hardware_buffer.dedicated.buffer.info

Fixes: 517103abf1c "anv/android: add ahardwarebuffer external memory properties"
Reported-by: Juan A. Suarez <jasuarez@igalia.com>
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
src/intel/vulkan/anv_formats.c