KhronosGroup / Vulkan-LoaderAndValidationLayers

**Deprecated repository** for Vulkan loader and validation layers
Apache License 2.0
414 stars 172 forks source link

KHR_MAINTENANCE2 changes to image and imageview usage #2567

Closed daveh-lunarg closed 6 years ago

daveh-lunarg commented 6 years ago

Skip some invalid usage bit checks when creating an image with the VK_IMAGE_CREATE_EXTENDED_USAGE_BIT flag set. This fixes some probably-false errors reported in a current issue but it is not a complete implementation of the MAINTENANCE2 language, which requires inspecting the combined usage bits from all compatible formats. The search seems expensive, yet insufficient to determine that the particular compatible format later selected for the imageview has the usage features in question. The changes here fix the current issue and leave a TODO for the search.

Also adds support for checking for a chained VkImageViewUsageCreateInfo struct when doing usage bit validation in vkCreateImageView(), including a few new VUIDs and a test to match.

Resolves: #2464 Resolves: #2538