From c31b613ed13ea3da2f2e0f8cef0ba6a589c6cca6 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 3 May 2019 13:53:14 -0700 Subject: [PATCH] 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 --- .../vulkancts/modules/vulkan/dynamic_state/vktDynamicStateRSTests.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.7.4