Check if image sample count supported by VkSampleCountFlags
authorTapani Pälli <tapani.palli@intel.com>
Tue, 2 Mar 2021 09:43:57 +0000 (11:43 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 15 Mar 2021 12:49:04 +0000 (12:49 +0000)
There might be limitations based on format, usage and sample count set.

VK-GL-CTS Issue: 2824

Components: Vulkan

Affects: dEQP-VK.synchronization.cross_instance.*multisample*

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Change-Id: I4702f7df809671f78183fc647d183d7838bf31c3

external/vulkancts/modules/vulkan/synchronization/vktSynchronizationCrossInstanceSharingTests.cpp

index 8e3d305..cf19295 100644 (file)
@@ -202,6 +202,11 @@ public:
                        {
                                TCU_THROW(NotSupportedError, "Handle requires dedicated allocation, but test uses suballocated memory");
                        }
+
+                       if (!(formatProperties.imageFormatProperties.sampleCounts & config.resource.imageSamples)) {
+                               TCU_THROW(NotSupportedError, "Specified sample count for format not supported");
+                       }
+
                }
                else
                {