Fix device mask in swapchain tests
authorIgor Ostrowski <igor.ostrowski@intel.com>
Wed, 20 Feb 2019 10:15:54 +0000 (11:15 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 28 Feb 2019 14:16:09 +0000 (09:16 -0500)
All elements of pCommandBufferDeviceMasks must be valid device masks

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

Components: Vulkan
VK-GL-CTS issue: 1618

Change-Id: Ic3857672a99b3d4039b26cd0139c08bca7a0e5da

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

index 5a37589..76e7c09 100644 (file)
@@ -1629,10 +1629,13 @@ tcu::TestStatus deviceGroupRenderTest (Context& context, Type wsiType)
                                renderer.recordDeviceGroupFrame(commandBuffer, firstDeviceID, secondDeviceID, physicalDevicesInGroupCount, imageNdx, frameNdx);
 
                                // submit queue
-                               deUint32 deviceMask = (1 << firstDeviceID) | (1 << secondDeviceID);
+                               deUint32 deviceMask = (1 << firstDeviceID);
                                std::vector<deUint32> deviceIndices(1, firstDeviceID);
                                if (physicalDevicesInGroupCount > 1)
+                               {
+                                       deviceMask |= (1 << secondDeviceID);
                                        deviceIndices.push_back(secondDeviceID);
+                               }
                                const VkDeviceGroupSubmitInfo deviceGroupSubmitInfo =
                                {
                                        VK_STRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO_KHR,         // sType