Fix VkClearRect sizes for vkCmdClearAttachment()
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 7 Oct 2021 09:29:38 +0000 (11:29 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Mon, 18 Oct 2021 19:15:23 +0000 (15:15 -0400)
The test was doing out-of-bounds clears of attachments.

Components: Vulkan
VK-GL-CTS issue: 3174

Affected tests:

   dEQP-VK.dynamic_rendering.*

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Change-Id: I6cbf82efdea824cc07aeaddf814368da5b8b5848
(cherry picked from commit 1c7f179642501615b4fafd249f84265f8577aa0b)

external/vulkancts/modules/vulkan/dynamic_rendering/vktDynamicRenderingTests.cpp

index 6f0256f..b83381b 100644 (file)
@@ -235,7 +235,7 @@ struct ClearAttachmentData
 
                        rectStencil2 =
                        {
-                               makeRect2D(0, 16, 32, 32),
+                               makeRect2D(0, 16, 32, 16),
                                0u,
                                1u,
                        };
@@ -250,7 +250,7 @@ struct ClearAttachmentData
 
                rectColorDepth2 =
                {
-                       makeRect2D(16, 0, 32, 32),
+                       makeRect2D(16, 0, 16, 32),
                        0u,
                        1u,
                };