From: Arkadiusz Sarwa Date: Wed, 24 Jul 2019 10:41:42 +0000 (+0200) Subject: Fixes 64bit random values for 32bit CTS build X-Git-Tag: upstream/1.3.5~1811^2^2~12^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0e2ecf0965afe9dee26b40feabcc0596d0f6e7a;p=platform%2Fupstream%2FVK-GL-CTS.git Fixes 64bit random values for 32bit CTS build In 32bit build a 64bit random value is assigned to 32bit value what cause different path of execution. Components: Vulkan VK-GL-CTS Issue: 1895 Affects: dEQP-VK.memory.pipeline_barrier.all.* Change-Id: I1f51b8b30be9a70ae82326609bc382431b8f3b80 --- diff --git a/external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp b/external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp index 13c5149..9a70812 100644 --- a/external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp +++ b/external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp @@ -7857,7 +7857,7 @@ vk::VkImageLayout getRandomNextLayout (de::Random& rng, DE_ASSERT(supportedLayoutCount > 0); - size_t nextLayoutNdx = ((size_t)rng.getUint64()) % (previousLayout == vk::VK_IMAGE_LAYOUT_UNDEFINED + size_t nextLayoutNdx = ((size_t)rng.getUint32()) % (previousLayout == vk::VK_IMAGE_LAYOUT_UNDEFINED ? supportedLayoutCount : supportedLayoutCount - 1);