From a8693975ebd8fe26fc7fe20cc16b47bf1ade5e22 Mon Sep 17 00:00:00 2001 From: ziga-lunarg Date: Tue, 11 Oct 2022 00:39:37 +0200 Subject: [PATCH] Fix loadOp in imageless framebuffer test 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 --- .../vulkan/imageless_framebuffer/vktImagelessFramebufferTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/vulkancts/modules/vulkan/imageless_framebuffer/vktImagelessFramebufferTests.cpp b/external/vulkancts/modules/vulkan/imageless_framebuffer/vktImagelessFramebufferTests.cpp index 33cfe47..eab4e86 100644 --- a/external/vulkancts/modules/vulkan/imageless_framebuffer/vktImagelessFramebufferTests.cpp +++ b/external/vulkancts/modules/vulkan/imageless_framebuffer/vktImagelessFramebufferTests.cpp @@ -288,9 +288,9 @@ Move 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; -- 2.7.4