Fix issues in load_store_op_none tests
authorRicardo Garcia <rgarcia@igalia.com>
Tue, 18 Jan 2022 15:22:48 +0000 (16:22 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 28 Jan 2022 07:40:50 +0000 (07:40 +0000)
commitb1ef7a1291bbe673483c1c064f2df4ef70a91a10
treed7d62b892e7202b9a64cc251df192752ebcd4bf0
parent12ec0c471b4b254493cd25acccdd0f5d9902d94d
Fix issues in load_store_op_none tests

This commit fixes several issues from the load_store_op_none tests:

- Checking depth/stencil image format support in a checkSupport() method
  instead of at iteration time.
- Validation error regarding mismatched attachment counts in dynamic
  rendering variants.
- Validation error regarding image layout in dynamic rendering variants.
- Wrong barriers after clearing color and depth/stencil images.
- Make the code not assume depth/stencil formats have both aspects,
  paving the way to testing more formats in the near future.

Affected tests:
dEQP-VK.*.load_store_op_none.*

Components: Vulkan
VK-GL-CTS issue: 3413

Change-Id: Iec237547f5762f299f1225eb4dda010e4256b367
external/vulkancts/framework/vulkan/vkImageUtil.cpp
external/vulkancts/framework/vulkan/vkImageUtil.hpp
external/vulkancts/modules/vulkan/renderpass/vktRenderPassLoadStoreOpNoneTests.cpp