From edb67c31bf27457e735f66abf1de0427a69e9071 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcin=20Ka=C5=84toch?= Date: Fri, 10 Feb 2017 10:43:52 +0100 Subject: [PATCH] Fix incorrectly defined image memory barrier In ResolveImageToImage::iterate() method a memory barrier is defined to change the layout of source image. By mistake destination image parameters are used to define subresource range. It causes validation errors as in some cases the subresource range extends beyond the dimensions of the source image. The fix uses source image parameters to define the memory barrier. Modified tests: dEQP-VK.api.copy_and_blit.resolve_image.* Components: Vulkan VK-GL-CTS issue: 160 Change-Id: I0ef72fbc99b127129441b7c66b43afd7b5a1e0ef --- external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp index c2886de..8b93c33 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp @@ -3059,7 +3059,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 -- 2.7.4