Use valid deviceMask in vkAcquireNextImage2KHR
authorSlawomir Cygan <slawomir.cygan@intel.com>
Thu, 21 Feb 2019 15:10:07 +0000 (16:10 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 28 Feb 2019 14:16:55 +0000 (09:16 -0500)
As the test uses the default device (without explicit device groups),
there is only one device in the group, with index 0.

Given that, the only valid deviceMask is 1 (not 0xffffffff).

Components: Vulkan

VK-GL-CTS Issue: 1623

Affects: dEQP-VK.wsi.win32.swapchain.render.basic2

Change-Id: I93813248fbeebc2787acdfe550d42588f60e8f7d

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

index 76e7c09..9e17f8a 100644 (file)
@@ -1370,7 +1370,7 @@ tcu::TestStatus basicRenderTest (Context& context, Type wsiType)
        const Unique<VkSwapchainKHR>    swapchain                                       (createSwapchainKHR(vkd, device, &swapchainInfo));
        const vector<VkImage>                   swapchainImages                         = getSwapchainImages(vkd, device, *swapchain);
 
-       AcquireWrapperType acquireImageWrapper(vkd, device, 0xFFFFFFFF, *swapchain, std::numeric_limits<deUint64>::max());
+       AcquireWrapperType acquireImageWrapper(vkd, device, 1u, *swapchain, std::numeric_limits<deUint64>::max());
        if (!acquireImageWrapper.featureAvailable(context.getUsedApiVersion(), instHelper.supportedExtensions))
                TCU_THROW(NotSupportedError, "Required extension is not supported");