From af3898ef2652fb1efc299b09fbd92aba93565908 Mon Sep 17 00:00:00 2001 From: Pyry Haulos Date: Thu, 28 Apr 2016 00:43:51 -0700 Subject: [PATCH] Reduce iteration count in object_management.multithreaded*.device Bug: 28434275 Bug: 28052526 Bug: 28052337 Change-Id: I98b8ba6e499a469f930d700a028b477dc22ceedf --- .../vulkan/api/vktApiObjectManagementTests.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp index 43139c8..e86d42a 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp @@ -2125,6 +2125,19 @@ tcu::TestStatus createMaxConcurrentTest (Context& context, typename Object::Para } template +int getCreateCount (void) +{ + return 100; +} + +template<> +int getCreateCount (void) +{ + // Creating VkDevice can take significantly longer than other object types + return 20; +} + +template class CreateThread : public ThreadGroupThread { public: @@ -2136,8 +2149,10 @@ public: void runThread (void) { - const int numIters = 100; - const int itersBetweenSyncs = 20; + const int numIters = getCreateCount(); + const int itersBetweenSyncs = numIters / 5; + + DE_ASSERT(itersBetweenSyncs > 0); for (int iterNdx = 0; iterNdx < numIters; iterNdx++) { -- 2.7.4