According to spec:
"If usage includes VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT, usage must
also contain at least one of VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT,
VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, or
VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT."
This change adds isValidImageUsageFlagCombination() checks, so invalid
usage flag combinations are not used in test.
VK-GL-CTS Issue: 1850
Components: Vulkan
Affects:
dEQP-VK.api.info.image_format_properties2.*
dEQP-VK.api.info.sparse_image_format_properties2.*
Change-Id: Ibc0249686c6ee91ab3758918ab4067694730134c
for (VkImageUsageFlags curUsageFlags = (VkImageUsageFlags)1; curUsageFlags <= allUsageFlags; curUsageFlags++)
{
+ if (!isValidImageUsageFlagCombination(curUsageFlags))
+ continue;
+
for (VkImageCreateFlags curCreateFlags = 0; curCreateFlags <= allCreateFlags; curCreateFlags++)
{
const VkPhysicalDeviceImageFormatInfo2 imageFormatInfo =
{
for (VkImageUsageFlags curUsageFlags = (VkImageUsageFlags)1; curUsageFlags <= allUsageFlags; curUsageFlags++)
{
+ if (!isValidImageUsageFlagCombination(curUsageFlags))
+ continue;
+
const VkPhysicalDeviceSparseImageFormatInfo2 imageFormatInfo =
{
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2,