Fix cull distance tests without fragment shader read
authorziga-lunarg <ziga@lunarg.com>
Sun, 2 Oct 2022 19:45:08 +0000 (21:45 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 14 Oct 2022 18:14:03 +0000 (18:14 +0000)
commit4e25f94b1d3490c834f1fa4601698cabf3b2ff1b
treefa7fc1dc0b2122d884be525a44f10b6c8630aae4
parentdfa2928ab87d8d7a05df918ec18833223519de14
Fix cull distance tests without fragment shader read

These tests were supposed to test using gl_cullDistance but removing
those writes from shaders did not affect the tests passing

If fragment shader does not read cull distances the tests will now set a
cull plane and check the number of fragments culled

Components: Vulkan

VK-GL-CTS issue: 3502

Affected tests:
dEQP-VK.clipping.user_defined.clip_cull_distance.*

Change-Id: I5ea3d95cc14da934994db2b41aa22fa386570d70
external/vulkancts/modules/vulkan/clipping/vktClippingTests.cpp