Fix barrier for initializing resolve attachment image to use proper level
authorSÅ‚awomir Cygan <slawomir.cygan@intel.com>
Thu, 9 Dec 2021 15:50:53 +0000 (16:50 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Sat, 8 Jan 2022 03:06:08 +0000 (03:06 +0000)
This changes the level in the barrier to match level used by image view
used as resolve attachment in renderpass.

VK-GL-CTS Issue: 3407

Components: Vulkan

Change-Id: I500dfdbf15c4b7cd9943d3b063122107e1890688
Affects: dEQP-VK.dynamic_rendering.*.multisample_resolve.*_resolve_level_*

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

index a45734e..cf22c2c 100644 (file)
@@ -717,7 +717,7 @@ void MultisampleRenderPassTestInstance::submit (void)
                                **m_singlesampleImages[dstNdx],
                                {
                                        VK_IMAGE_ASPECT_COLOR_BIT,
-                                       0u,
+                                       m_renderLevel,
                                        1u,
                                        0u,
                                        m_layerCount