From fb4b95a0497652b98adba6a649634d12afc546fc Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 28 Jul 2019 13:34:13 -0700 Subject: [PATCH] Add missing checks for sampleShading feature These cases were missed in the previous pass as they were masked by the (correct) check for fragmentStoresAndAtomics. Components: Vulkan Affects: dEQP-VK.glsl.builtin_var.* VK-GL-CTS Issue: 1901 Change-Id: I4d19c5075d14f60ead4c6df6370fffc870cde68a --- .../modules/vulkan/shaderrender/vktShaderRenderBuiltinVarTests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderBuiltinVarTests.cpp b/external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderBuiltinVarTests.cpp index 66c8644..91d22ba 100644 --- a/external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderBuiltinVarTests.cpp +++ b/external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderBuiltinVarTests.cpp @@ -305,6 +305,9 @@ BuiltinFragDepthCaseInstance::BuiltinFragDepthCaseInstance (Context& context, Vk if (m_context.getDeviceFeatures().fragmentStoresAndAtomics == VK_FALSE) throw tcu::NotSupportedError("fragmentStoresAndAtomics not supported"); + if (m_context.getDeviceFeatures().sampleRateShading == VK_FALSE) + throw tcu::NotSupportedError("sampleRateShading not supported"); + imageFormatProperties = getPhysicalDeviceImageFormatProperties(vki, physicalDevice, m_format, VK_IMAGE_TYPE_2D, VK_IMAGE_TILING_OPTIMAL, VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, (VkImageCreateFlags)0); @@ -1022,6 +1025,9 @@ BuiltinFragCoordMsaaCaseInstance::BuiltinFragCoordMsaaCaseInstance (Context& con if (m_context.getDeviceFeatures().fragmentStoresAndAtomics == VK_FALSE) throw tcu::NotSupportedError("fragmentStoresAndAtomics not supported"); + if (m_context.getDeviceFeatures().sampleRateShading == VK_FALSE) + throw tcu::NotSupportedError("sampleRateShading not supported"); + imageFormatProperties = getPhysicalDeviceImageFormatProperties(vki, physicalDevice, VK_FORMAT_R32G32B32A32_SFLOAT, VK_IMAGE_TYPE_2D, VK_IMAGE_TILING_OPTIMAL, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, (VkImageCreateFlags)0); -- 2.7.4