Check fragment shader stores in robustness tests
authorRicardo Garcia <rgarcia@igalia.com>
Wed, 13 Oct 2021 08:57:20 +0000 (10:57 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 15 Oct 2021 18:55:40 +0000 (18:55 +0000)
Some robustness tests were using fragment shader stores without checking
for the fragmentStoresAndAtomics feature.

Affected tests:
dEQP-VK.robustness.*.frag

Components: Vulkan
VK-GL-CTS issue: 3209

Change-Id: I8032bd19f7de4f2d87d642542c2b7aaec20965b8

external/vulkancts/modules/vulkan/robustness/vktRobustnessExtsTests.cpp

index 9012ef7..a6205ef 100644 (file)
@@ -401,6 +401,9 @@ void RobustnessExtsTestCase::checkSupport(Context& context) const
        if (m_data.stage == STAGE_VERTEX && !features2.features.vertexPipelineStoresAndAtomics)
                TCU_THROW(NotSupportedError, "Vertex pipeline stores and atomics not supported");
 
+       if (m_data.stage == STAGE_FRAGMENT && !features2.features.fragmentStoresAndAtomics)
+               TCU_THROW(NotSupportedError, "Fragment shader stores not supported");
+
        if (m_data.stage == STAGE_RAYGEN)
                context.requireDeviceFunctionality("VK_NV_ray_tracing");