Move image to optimal layout before using it in renderpass in synchronization tests
authorSlawomir Cygan <slawomir.cygan@intel.com>
Mon, 28 Dec 2020 14:48:20 +0000 (15:48 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 13 Jan 2021 08:08:06 +0000 (08:08 +0000)
commitd2d3f54de446e22d0fa0e5d5cce32606a1c2e7c6
tree1710bf59259ae0c8a9c8a452e51616000c46f6ad
parentc59a948cafb34e9d0adba3b0b88b9077e8d5fe55
Move image to optimal layout before using it in renderpass in synchronization tests

This fixes 'write_clear_attachments' operation, where newly created image, while
still being in UNDEFINED layout was used in renderpass, that starts from
DEPTH_STENCIL_OPTIMAL layout.

This fixes regression introduced in 2e2e79bd.

Components: Vulkan

VK-GL-CTS Issue: 2709

Affects: dEQP-VK.synchronization.*write_clear_attachments*

Change-Id: I2e2f587ce5fbe928b6146f349cd37a645661645f
external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperation.cpp