Fix wrong layout used in vkCmdImageResolve
authorSlawomir Cygan <slawomir.cygan@intel.com>
Mon, 19 Feb 2018 13:37:08 +0000 (14:37 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 27 Feb 2018 09:05:01 +0000 (04:05 -0500)
commitedd497bd79e618ad5733f1403c3f15625fdeec9b
tree23b0c3c483d302215ee00d3def2537372a2ab76e
parent96a1b33cae6530f63fe04be2a7b78fcd234cb43b
Fix wrong layout used in vkCmdImageResolve

VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL is not
a valid source layout for vkCmdImageResolve operation.

Image is already in VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL
layout after transition performed ~48LOC above the offending resolve,
so just use current image layout here.

Components: Vulkan

VK-GL-CTS Issue: 1023

Change-Id: Ibcc3359c030d709c5a947316cea2a9cb19736b21
Affects: dEQP-VK.glsl.builtin_var.fragdepth.*multisample_*
external/vulkancts/modules/vulkan/vktDrawUtil.cpp