Fix loadOp in imageless framebuffer test
authorziga-lunarg <ziga@lunarg.com>
Mon, 10 Oct 2022 22:39:37 +0000 (00:39 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 27 Oct 2022 17:10:29 +0000 (17:10 +0000)
If initial layout in attachment descriptions is
VK_IMAGE_LAYOUT_UNDEFINED, then the load op must not be
VK_ATTACHMENT_LOAD_OP_LOAD

Components: Vulkan

VK-GL-CTS issue: 4030

Affected tests:
dEQP-VK.imageless_framebuffer.*

Change-Id: I5e7f3f5e440dd380a05cf82127af4bea2538fdd2

external/vulkancts/modules/vulkan/imageless_framebuffer/vktImagelessFramebufferTests.cpp

index 33cfe47..eab4e86 100644 (file)
@@ -288,9 +288,9 @@ Move<VkRenderPass> makeRenderPass (const DeviceInterface&                           vk,
                (VkAttachmentDescriptionFlags)0,                //  VkAttachmentDescriptionFlags        flags;
                depthStencilFormat,                                             //  VkFormat                                            format;
                VK_SAMPLE_COUNT_1_BIT,                                  //  VkSampleCountFlagBits                       samples;
-               VK_ATTACHMENT_LOAD_OP_LOAD,                             //  VkAttachmentLoadOp                          loadOp;
+               VK_ATTACHMENT_LOAD_OP_DONT_CARE,                //  VkAttachmentLoadOp                          loadOp;
                VK_ATTACHMENT_STORE_OP_STORE,                   //  VkAttachmentStoreOp                         storeOp;
-               VK_ATTACHMENT_LOAD_OP_LOAD,                             //  VkAttachmentLoadOp                          stencilLoadOp;
+               VK_ATTACHMENT_LOAD_OP_DONT_CARE,                //  VkAttachmentLoadOp                          stencilLoadOp;
                VK_ATTACHMENT_STORE_OP_STORE,                   //  VkAttachmentStoreOp                         stencilStoreOp;
                initialLayoutDepthStencil,                              //  VkImageLayout                                       initialLayout;
                finalLayoutDepthStencil                                 //  VkImageLayout                                       finalLayout;