Check for depthBiasClamp feature before using it
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / modules / vulkan / dynamic_state / vktDynamicStateRSTests.cpp
index 77ad1b3..905dc14 100644 (file)
@@ -488,6 +488,9 @@ public:
                const vk::VkQueue       queue   = m_context.getUniversalQueue();
                const vk::VkDevice      device  = m_context.getDevice();
 
+               if (!m_context.getDeviceFeatures().depthBiasClamp)
+                       TCU_THROW(NotSupportedError, "depthBiasClamp feature is not supported");
+
                beginRenderPass();
 
                // set states here