Fixes for image format properties tests
authorGraeme Leese <gleese@broadcom.com>
Mon, 16 Nov 2020 11:15:01 +0000 (11:15 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 25 Nov 2020 08:20:09 +0000 (03:20 -0500)
commitb527330ba9a67c4d335b82bc7dfa39ec8245ff0d
tree21528a7a36bf1b23d0dc881e2b82eecab2491373
parent661d40cd87efff94aed726edb6de4470b8e63222
Fixes for image format properties tests

 * Non-chroma-subsampled formats are allowed to support cosited chroma.
   (In fact, until a recent spec clarification it was required).
 * Apply checks of YCbCr properties to all formats. Any format can be
   used with YCbCr, so they should all be subject to the same checks.
   (This is what covered up the previous issue).
 * Only ban non-YCbCr usage for YCbCr formats that require a
   SamplerYCbCrConversion object. There were a few odd formats added
   with that extension for which this is not required.

Components: Vulkan
VK-GL-CTS issue: 2624
Affects: dEQP-VK.api.info.format_properties.*

Change-Id: I17d1058e7a4cf1b1a17fb30d37fc0c4a9757c4d4
external/vulkancts/framework/vulkan/vkImageUtil.cpp
external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp