Fix Windows build
authorBoris Zanin <boris.zanin@mobica.com>
Tue, 9 Jan 2018 14:18:11 +0000 (15:18 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 10 Jan 2018 10:45:46 +0000 (05:45 -0500)
UINT64_MAX is undefined under Windows. Use standard workaround.

Affects:

dEQP-VK.synchronization.basic.semaphore.chain

Components: Vulkan

Vk-GL-CTS issue: 822

Change-Id: Ib65d6770dd92cc29c89b66934e147a3ef319efeb

external/vulkancts/modules/vulkan/synchronization/vktSynchronizationBasicSemaphoreTests.cpp

index fd02e31..f1c23a5 100644 (file)
@@ -136,7 +136,7 @@ tcu::TestStatus basicChainCase (Context& context)
        VkSubmitInfo si = { VK_STRUCTURE_TYPE_SUBMIT_INFO, DE_NULL, 1, &semaphores.back(), &flags, 0, DE_NULL, 0, DE_NULL };
        VK_CHECK(vk.queueSubmit(queue, 1, &si, fence));
 
-       vk.waitForFences(device, 1, &fence, VK_TRUE, UINT64_MAX);
+       vk.waitForFences(device, 1, &fence, VK_TRUE, ~(0ull));
 
        vk.destroyFence(device, fence, DE_NULL);