OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 2 Aug 2017 23:19:06 +0000 (00:19 +0100)
commite0951c67f4401a206db5e94d77dc67dfccf88010
tree60b3f7d43dc95a9c31385faf374703650edc1a83
parent9c8ffdad91846bb641a42559b4c1eb73714401fb
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>
(cherry picked from commit 5d6905211355464de4885492511e5f9d936cc058)
src/intel/vulkan/anv_image.c