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)
{
(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