DrawUtil: Fix depthBounds check
authorIgor Ostrowski <igor.ostrowski@intel.com>
Mon, 9 Oct 2017 14:41:31 +0000 (16:41 +0200)
committerIgor Ostrowski <igor.ostrowski@intel.com>
Mon, 9 Oct 2017 16:50:13 +0000 (12:50 -0400)
Affects:
dEQP-VK.glsl.builtin_var.fragdepth*

Components: Vulkan

VK-GL-CTS issue: 758

Change-Id: I4da79b236921e64f11566fe386b144497249123b

external/vulkancts/modules/vulkan/vktDrawUtil.cpp

index 2325f54..17f5714 100644 (file)
@@ -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 =