From 4f802fb33a047f6add87d053cec2c23b172340fb Mon Sep 17 00:00:00 2001 From: Tom Cooper Date: Tue, 25 Sep 2018 14:59:16 +0100 Subject: [PATCH] Fix support check for dEQP-VK.binding_model.descriptorset_random.* 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 --- .../vulkan/binding_model/vktBindingDescriptorSetRandomTests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/external/vulkancts/modules/vulkan/binding_model/vktBindingDescriptorSetRandomTests.cpp b/external/vulkancts/modules/vulkan/binding_model/vktBindingDescriptorSetRandomTests.cpp index 55cc362..cd764f6 100644 --- a/external/vulkancts/modules/vulkan/binding_model/vktBindingDescriptorSetRandomTests.cpp +++ b/external/vulkancts/modules/vulkan/binding_model/vktBindingDescriptorSetRandomTests.cpp @@ -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 || -- 2.7.4