Wrong format in load_store_op_none test.
authorAaron Hagan <aaron.hagan@amd.com>
Mon, 27 Sep 2021 19:22:47 +0000 (15:22 -0400)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Mon, 18 Oct 2021 19:15:23 +0000 (15:15 -0400)
One of the load_store_op_none tests is currently using the incorrect
VK_FORMAT_R8G8B8A8_UNORM format for the color attachments.
It should be using VK_FORMAT_R8G8B8A8_UINT instead.

VK-GL-CTS issue: 3154
Components: Vulkan

Affected tests:
dEQP-VK.renderpass_with_dynamic_rendering.suballocation.load_store_op_none.color_load_op_none_store_op_none_resolve

Change-Id: I7dd8b4da05fef58d91a8913ac49912ba683f033d
(cherry picked from commit 37c52f8beafb8ad45bb84cd54c17e41c2e02825f)

external/vulkancts/modules/vulkan/renderpass/vktRenderPassLoadStoreOpNoneTests.cpp

index c7bc0dd..ea6be7c 100644 (file)
@@ -1092,7 +1092,10 @@ tcu::TestStatus LoadStoreOpNoneTestInstance::iterate (void)
                                if (att.usage & ATTACHMENT_USAGE_DEPTH_STENCIL)
                                        renderingCreateInfo.depthStencilAttachmentFormat = VK_FORMAT_D24_UNORM_S8_UINT;
                                else
-                                       colorVector.push_back(VK_FORMAT_R8G8B8A8_UNORM);
+                               {
+                                       VkFormat format = getFormat(att.usage, m_testParams.depthStencilFormat);
+                                       colorVector.push_back(format);
+                               }
                        }
 
                        vk::VkPipelineRenderingCreateInfoKHR* nextPtr = DE_NULL;