Fix support check for dEQP-VK.binding_model.descriptorset_random.*
authorTom Cooper <tom.cooper@arm.com>
Tue, 25 Sep 2018 13:59:16 +0000 (14:59 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 27 Sep 2018 07:40:37 +0000 (03:40 -0400)
Test should check vertexPipelineStoresAndAtomics before writing to a
storage image from a vertex shader.

Affects:
dEQP-VK.binding_model.descriptorset_random.*

Components: Vulkan
VK-GL_CTS issue: 1381

Change-Id: Ide65fe7ce2a0015875a56746a59725eb5eab3f1f

external/vulkancts/modules/vulkan/binding_model/vktBindingDescriptorSetRandomTests.cpp

index 55cc362..cd764f6 100644 (file)
@@ -218,6 +218,10 @@ void DescriptorSetRandomTestCase::checkSupport(Context& context) const
        }
 
        context.getInstanceInterface().getPhysicalDeviceFeatures2(context.getPhysicalDevice(), &features);
+       if (m_data.stage == STAGE_VERTEX && !features.features.vertexPipelineStoresAndAtomics)
+       {
+               return TCU_THROW(NotSupportedError, "Vertex pipeline stores and atomics not supported");
+       }
 
        if ((m_data.indexType == INDEX_TYPE_PUSHCONSTANT ||
                 m_data.indexType == INDEX_TYPE_DEPENDENT ||