From: Piers Daniell Date: Wed, 4 Oct 2017 16:51:12 +0000 (-0600) Subject: Fix imageExtent to use correct destination size X-Git-Tag: upstream/1.3.5~2851 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44bfa19fe9e9926f0cc81b5a426738f75a457fa7;p=platform%2Fupstream%2FVK-GL-CTS.git Fix imageExtent to use correct destination size This fixes an issue with using imageParms to specify the imageExtent for the cases where the test has done scaling between the source and destination surfaces. VK-GL-CTS issue: 729 Affects: dEQP-VK.api.copy_and_blit.* Change-Id: I4053496dfa1fdedd9edb7e108e554cb988559bcf Components: Vulkan (cherry picked from commit 16986d105c5af4c4ef6f8f54df5c42ec5c357bb5) --- diff --git a/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp index db628c1..5bbc0b8 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp @@ -662,7 +662,7 @@ void CopiesAndBlittingTestInstance::readImageAspect (vk::VkImage image, { (deUint32)dst.getWidth(), (deUint32)dst.getHeight(), - imageParms.imageType == VK_IMAGE_TYPE_2D ? 1u : (deUint32)dst.getDepth() + (imageParms.imageType == VK_IMAGE_TYPE_3D) ? (deUint32)dst.getDepth() : 1, }; // Create destination buffer