Do not test CLEAR loadOp with read-only depth stencil image layouts
authorSlawomir Cygan <slawomir.cygan@intel.com>
Tue, 24 Apr 2018 15:50:19 +0000 (17:50 +0200)
committerSlawomir Cygan <slawomir.cygan@intel.com>
Thu, 26 Apr 2018 16:40:53 +0000 (18:40 +0200)
commit54a494df35d6a6acff25b71f280c5d14f876f695
tree904715a22a36c37002d7aafafaf227a422d4cde1
parent1bef38a2ed5a28e270c718895597b7668619abce
Do not test CLEAR loadOp with read-only depth stencil image layouts

It is invalid to use implicit clears with depth stencil images, which first
render pass usage is in read only depth/stencil image layout

Spec:
"
For any member of pAttachments with a loadOp equal to VK_ATTACHMENT_LOAD_OP_CLEAR,
the first use of that attachment must not specify a layout equal to
VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL.

For any member of pAttachments with a stencilLoadOp equal to VK_ATTACHMENT_LOAD_OP_CLEAR,
the first use of that attachment must not specify a layout equal to
VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL."

Component: Vulkan

Affects:
dEQP-VK.renderpass.suballocation.formats.d*.clear.*_read_only

VK-GL-CTS Issue: 1144

Change-Id: Iad78473fe4bdf87dac5aff5bcc1c2b888e790cb8
android/cts/master/vk-master.txt
external/vulkancts/modules/vulkan/renderpass/vktRenderPassTests.cpp
external/vulkancts/mustpass/1.0.2/vk-default.txt