From: Chris Forbes Date: Fri, 3 May 2019 20:53:14 +0000 (-0700) Subject: Check for depthBiasClamp feature before using it X-Git-Tag: upstream/1.3.5~2002^2~18^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c31b613ed13ea3da2f2e0f8cef0ba6a589c6cca6;p=platform%2Fupstream%2FVK-GL-CTS.git Check for depthBiasClamp feature before using it VK-GL-CTS Issue: 1764 Affects: dEQP-VK.dynamic_state.rs_state.depth_bias_clamp Change-Id: Iccd05a1eac2285125847a392c4065d36c88cb426 --- diff --git a/external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateRSTests.cpp b/external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateRSTests.cpp index 77ad1b3..905dc14 100644 --- a/external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateRSTests.cpp +++ b/external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateRSTests.cpp @@ -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