Fix SFR swapchain test's implicit layout transitions
authorPiers Daniell <pdaniell@nvidia.com>
Wed, 13 Nov 2019 21:01:10 +0000 (14:01 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 2 Dec 2019 09:20:51 +0000 (04:20 -0500)
commit71113728a4f0201d7cc1fab6de15f68df63e19bd
treef92daad31016912c57b021b9936af8a8c2b53395
parentd5117600d3e791a80584f2da933fc8f28c750d3c
Fix SFR swapchain test's implicit layout transitions

The Vulkan spec says that layout transitions done on peer bound
image memory requires the implementation to support
VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT and
VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT. The test never checked
for this capability and did implicit render pass layout
transitions anyway.

This CL updates the test to use an explicit layout transitions
on local aliases of the image when the implementation doesn't
support doing peer-to-peer transfer.

This CL also fixes a bug in the SFR rects definition in
VkBindImageMemoryDeviceGroupInfo to specify the correct number
of rectangles.

Affects:

dEQP-VK.wsi.win32.swapchain.render.*
dEQP-VK.wsi.win32.swapchain.modify.*

Components: Vulkan

VK-GL-CTS issue: 2094

Change-Id: I31b7099a6d5c4f11be83d6d14a5c02cca6408441
external/vulkancts/modules/vulkan/wsi/vktWsiSwapchainTests.cpp