From c0b59025694fd9cecfa19037689b5ad5500e08e4 Mon Sep 17 00:00:00 2001 From: Igor Ostrowski Date: Mon, 9 Oct 2017 16:41:31 +0200 Subject: [PATCH] DrawUtil: Fix depthBounds check Affects: dEQP-VK.glsl.builtin_var.fragdepth* Components: Vulkan VK-GL-CTS issue: 758 Change-Id: I4da79b236921e64f11566fe386b144497249123b --- external/vulkancts/modules/vulkan/vktDrawUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/vktDrawUtil.cpp b/external/vulkancts/modules/vulkan/vktDrawUtil.cpp index 2325f54..17f5714 100644 --- a/external/vulkancts/modules/vulkan/vktDrawUtil.cpp +++ b/external/vulkancts/modules/vulkan/vktDrawUtil.cpp @@ -654,7 +654,7 @@ VulkanDrawContext::VulkanDrawContext ( Context& context, 0u, // write mask 0u); // reference - if (m_drawState.depthBoundsTestEnable && context.getDeviceFeatures().depthBounds) + if (m_drawState.depthBoundsTestEnable && !context.getDeviceFeatures().depthBounds) TCU_THROW(NotSupportedError, "depthBounds not supported"); const VkPipelineDepthStencilStateCreateInfo pipelineDepthStencilStateInfo = -- 2.7.4