VkImageCreateInfo should ignore queeu family indices in some situation

The spec says indices pointer should be ignored when sharingMode is not
VK_SHARING_MODE_CONCURRENT.

We need to explicitly set index count to 0 and index pointer to null,
otherwise encoder will still try to encode it.

Spec:

https://registry.khronos.org/vulkan/specs/1.3/html/vkspec.html#VUID-VkBufferCreateInfo-sharingMode-00913

Bug: 307378870
Test: dEQP-VK.wsi.android.swapchain.create.exclusive_nonzero_queues
Change-Id: Ib131b075e277fb1cf71ba1e4c01a6adcc1a82d63
Merged-In: If0c1896c6acef97db9ec3ae3abfe88eea333b42f
1 file changed