anv/image: Fix VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT
authorChad Versace <chadversary@chromium.org>
Mon, 17 Jul 2017 22:18:51 +0000 (15:18 -0700)
committerChad Versace <chadversary@chromium.org>
Wed, 19 Jul 2017 18:25:50 +0000 (11:25 -0700)
commit5d6905211355464de4885492511e5f9d936cc058
treebbfc2e92984d54dceb75ea112b70ae757fe05035
parent80a0c9745cad25ca35ae6ea5b29363836cc21a66
anv/image: Fix VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT

We incorrectly detected VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT.  We looked
for the bit in VkImageCreateInfo::usage, but it's actually in
VkImageCreateInfo::flags.

Found by assertion failures while enabling VK_ANDROID_native_buffer.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_image.c