Fix Invalid VkImageSubresourceRange
authorNoah Fredriks <Noah.Fredriks@amd.com>
Thu, 14 Dec 2017 19:48:48 +0000 (14:48 -0500)
committerNoah Fredriks <Noah.Fredriks@amd.com>
Thu, 14 Dec 2017 19:59:44 +0000 (14:59 -0500)
Pipeline image barrier was using the arraySize of the wrong image.

Affects: dEQP-VK.api.copy_and_blit.core.resolve_image.*

Components: Vulkan

VK-GL-CTS Issue: 910

Change-Id: I021bdd0ba5eff9e894f21186b3d85bb2f2c99f16

external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp

index 86edde0..7022834 100644 (file)
@@ -3185,7 +3185,7 @@ tcu::TestStatus ResolveImageToImage::iterate (void)
                                0u,                                                                     // deUint32                             baseMipLevel;
                                1u,                                                                     // deUint32                             mipLevels;
                                0u,                                                                     // deUint32                             baseArraySlice;
-                               getArraySize(m_params.dst.image)        // deUint32                             arraySize;
+                               getArraySize(m_params.src.image)        // deUint32                             arraySize;
                        }
                },
                // destination image