Fix tests that enable depth testing on undefined depth buffer
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 9 Jan 2023 10:24:48 +0000 (11:24 +0100)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Mon, 16 Jan 2023 10:01:43 +0000 (10:01 +0000)
commit52e160cb81638f7595b9c4cd4e9a8a5d17411ca8
tree7a75f9859121b3318f985319db506c097657dc6c
parentc0950d68fc5be71036dfa26d5075f94955b4367f
Fix tests that enable depth testing on undefined depth buffer

There are tests in the load_store_op_none category set up like this:

Depth load: NONE
Depth store: NONE
Depth testing: ON
Depth op: GREATER
Depth write: OFF

This configuration is bogus because the depth buffer will be
undefined as this particular test won't initialize the render
area inside the render pass and it enabled depth testing
with a comparison function that depends on the contents of the
depth buffer.

Fix it by detecting this scenario and making the depth comparison
ALWAYS to ensure that depth testing doesn't drop any samples,
which is what the test expects.

Affects:
dEQP-VK.*.load_store_op_none.depth*

Components: Vulkan
VK-GL-CTS issue: 4209

Change-Id: Icab24dcf7f46156b7b59541ea64e5823deec53d1
external/vulkancts/modules/vulkan/renderpass/vktRenderPassLoadStoreOpNoneTests.cpp