From d73d15042f3c1fa3c2c1d80633f45e038b289993 Mon Sep 17 00:00:00 2001 From: Arkadiusz Sarwa Date: Fri, 22 Jun 2018 12:40:40 +0200 Subject: [PATCH] Fix: add extensions checking Affects: dEQP-VK.spirv_assembly.instruction.graphics.* Components: Vulkan VK-GL-CTS issue: 1235 Change-Id: Ic312f6571534dfbb7117ca9f49b7c9067cfc04d6 --- .../vulkan/spirv_assembly/vktSpvAsmGraphicsShaderTestUtil.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmGraphicsShaderTestUtil.cpp b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmGraphicsShaderTestUtil.cpp index d082f1c..199292e 100644 --- a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmGraphicsShaderTestUtil.cpp +++ b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmGraphicsShaderTestUtil.cpp @@ -2419,6 +2419,13 @@ TestStatus runAndVerifyDefaultPipeline (Context& context, InstanceContext instan TCU_THROW(NotSupportedError, "Geometry not supported"); } + // Check all required extensions are supported + for (std::vector::const_iterator i = instance.requiredDeviceExtensions.begin(); i != instance.requiredDeviceExtensions.end(); ++i) + { + if (!de::contains(context.getDeviceExtensions().begin(), context.getDeviceExtensions().end(), *i)) + TCU_THROW(NotSupportedError, (std::string("Extension not supported: ") + *i).c_str()); + } + { for (deUint32 featureNdx = 0; featureNdx < instance.requiredDeviceFeatures.size(); ++featureNdx) { -- 2.7.4