Check for depthBiasClamp feature before using it
authorChris Forbes <chrisforbes@google.com>
Fri, 3 May 2019 20:53:14 +0000 (13:53 -0700)
committerChris Forbes <chrisforbes@google.com>
Fri, 3 May 2019 21:05:45 +0000 (14:05 -0700)
VK-GL-CTS Issue: 1764
Affects: dEQP-VK.dynamic_state.rs_state.depth_bias_clamp

Change-Id: Iccd05a1eac2285125847a392c4065d36c88cb426

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