Check for depthBounds support in shader builtin frag depth tests
authorTony Wasserka <tony.wasserka@imgtec.com>
Tue, 12 Sep 2017 11:03:13 +0000 (12:03 +0100)
committerTony Wasserka <tony.wasserka@imgtec.com>
Tue, 12 Sep 2017 14:22:12 +0000 (15:22 +0100)
commit6b3bca439862e986409ffd76e857ada0cc7c9080
tree100dec30a41fbf2033acdeb67c9bc372dc99eb16
parent9edc70a960946b98c280a5941bf68abfb5c8e58e
Check for depthBounds support in shader builtin frag depth tests

Depth bounds testing was enabled without checking for feature support
in a couple of tests. With this change, tests that don't need this
feature leave it disabled, whereas other tests (currently only
dEQP-VK.glsl.builtin_var.fragdepth.*) now throw NotSupported when
the device doesn't support it.

Affects:

dEQP-VK.clipping.*
dEQP-VK.glsl.builtin_var.*

Components: Vulkan

VK-GL-CTS issue: 685

Change-Id: I44d94142e295ff135ad1a55d0d6e212b65994257
external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderBuiltinVarTests.cpp
external/vulkancts/modules/vulkan/vktDrawUtil.cpp
external/vulkancts/modules/vulkan/vktDrawUtil.hpp