Cherry-pick image_format_properties changes from upstream
authorPyry Haulos <phaulos@google.com>
Tue, 11 Oct 2016 17:24:27 +0000 (10:24 -0700)
committerPyry Haulos <phaulos@google.com>
Tue, 11 Oct 2016 17:24:42 +0000 (10:24 -0700)
commit43227ff1db222122fe675d733e23f96546e1d633
tree1238cd227523540084224b9a8cb0da73cbaa12f6
parentec5c5c216eca3edef9d07c710478b6f8921f22c1
Cherry-pick image_format_properties changes from upstream

Bug: 31732496

Contains 4 commits:

1: Fix dEQP-VK.api.info.image_format_properties - TRANSIENT usage flag used with DMA flags

(cherry picked from commit 83f90be9118a121b47f5e16f04029e205c68f994)

2: Fix VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT handling in query tests

83f90be9 added a check that was intended to make tests treat combination
of TRANSIENT_ATTACHMENT_BIT with non-RT usages invalid. However, that
change was buggy and lead the tests to treat _all_ usages of
TRANSIENT_ATTACHMENT_BIT invalid and thus skip testing them.

(cherry picked from commit 570326e5c8d85fe16fa6ce36de73c8f9bcba4d3e)

3: Do not require TRANSIENT usage support without other RT usages

Affects dEQP-VK.api.info.image_format_properties.*

See CTS issue #507 and spec issue #540

(cherry picked from commit 377ad0ad5962351d14badb1857b55dc8e8e49218)

4: Fix required sample counts per spec issue 478

Affects dEQP-VK.api.info.image_format_properties.*

See CTS issue #507 and spec issue #478

(cherry picked from commit 02c61e30f50cb04505f421b1ebe07c4a42864acf)

Change-Id: I4c714f887c1554994f90ec361ed44876465cd5a3
external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp