Fix attachment load op in framebuffer compatible render pass tests
authorziga-lunarg <ziga@lunarg.com>
Fri, 16 Sep 2022 00:42:41 +0000 (02:42 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 6 Oct 2022 15:47:19 +0000 (15:47 +0000)
If image layout is VK_LAYOUT_UNDEFINED the loadOp of
VkAttachmentDescription must not be VK_ATTACHMENT_LOAD_OP_LOAD

Components: Vulkan

VK-GL-CTS issue:3948

Affected tests:
dEQP-VK.api.pipeline.renderpass.framebuffer_compatible_renderpass

Change-Id: I4b31df7fa9ca56d9c31af1326b8036f81e9d80fe

external/vulkancts/modules/vulkan/api/vktApiPipelineTests.cpp

index 5533e49..85a080a 100644 (file)
@@ -588,7 +588,7 @@ tcu::TestStatus framebufferCompatibleRenderPassTest (Context& context)
        const Unique<VkFramebuffer>             frameBuffer                             (createFramebuffer(vk, device, &framebufferCreateInfo));
 
        const Unique<VkRenderPass>              renderPassB                             (createSimpleRenderPass(vk, device, format,
-                                                                                                                                                                       VK_ATTACHMENT_LOAD_OP_LOAD,
+                                                                                                                                                                       VK_ATTACHMENT_LOAD_OP_DONT_CARE,
                                                                                                                                                                        VK_ATTACHMENT_LOAD_OP_LOAD,
                                                                                                                                                                        VK_ATTACHMENT_STORE_OP_STORE,
                                                                                                                                                                        VK_IMAGE_LAYOUT_GENERAL));