From a2bb1856f04c62d2aef7ad64431a8f3353e8e7bc Mon Sep 17 00:00:00 2001 From: Yanjun Zhang Date: Tue, 9 Jan 2018 16:26:50 -0800 Subject: [PATCH] Check sampleRateShading for sample_qualifier_distinct_values.* tests Affects: dEQP-VK.pipeline.*.sample_qualifier_distinct_values.* Components: Vulkan VK-GL-CTS issue: 925 Change-Id: Ife1166e8ed88699c67ee6acde79857f34c013398 --- .../vulkan/pipeline/vktPipelineMultisampleInterpolationTests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleInterpolationTests.cpp b/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleInterpolationTests.cpp index 46f94b5..dc09eeb 100644 --- a/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleInterpolationTests.cpp +++ b/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleInterpolationTests.cpp @@ -899,6 +899,8 @@ void MSCaseSampleQualifierDistinctValues::initPrograms (vk::SourceCollections& p TestInstance* MSCaseSampleQualifierDistinctValues::createInstance (Context& context) const { + if (!context.getDeviceFeatures().sampleRateShading) + TCU_THROW(NotSupportedError, "sampleRateShading support required"); return new MSInstanceDistinctValues(context, m_imageMSParams); } -- 2.7.4