Update device_group test to ignore VK_SUBOPTIMAL_KHR
authorFabio <fabio.mestre@arm.com>
Thu, 25 Jul 2019 15:08:16 +0000 (17:08 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 14 Aug 2019 11:36:00 +0000 (07:36 -0400)
The transform used to create the swapchain does not match the
surface rotation. This causes vkQueuePresentKHR to return
VK_SUBOPTIMAL_KHR. This return code can be ignored.

Components: Vulkan

VK-GL-CTS Issue: 1899

Affects: dEQP-VK.wsi.android.swapchain.render.device_group

Change-Id: I27d8e61007dd049b8e9cc532918056b8493a9b52

external/vulkancts/modules/vulkan/wsi/vktWsiSwapchainTests.cpp

index d634ebd..ba53381 100644 (file)
@@ -1705,7 +1705,7 @@ tcu::TestStatus deviceGroupRenderTest (Context& context, Type wsiType)
                                        &imageNdx,
                                        (VkResult*)DE_NULL
                                };
-                               VK_CHECK(vkd.queuePresentKHR(queue, &presentInfo));
+                               VK_CHECK_WSI(vkd.queuePresentKHR(queue, &presentInfo));
                        }
                }