Reduce iteration count in object_management.multithreaded*.device
authorPyry Haulos <phaulos@google.com>
Thu, 28 Apr 2016 07:43:51 +0000 (00:43 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 28 Apr 2016 07:48:26 +0000 (00:48 -0700)
Bug: 28434275
Bug: 28052526
Bug: 28052337
Change-Id: I98b8ba6e499a469f930d700a028b477dc22ceedf

external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp

index 43139c8..e86d42a 100644 (file)
@@ -2125,6 +2125,19 @@ tcu::TestStatus createMaxConcurrentTest (Context& context, typename Object::Para
 }
 
 template<typename Object>
+int getCreateCount (void)
+{
+       return 100;
+}
+
+template<>
+int getCreateCount<Device> (void)
+{
+       // Creating VkDevice can take significantly longer than other object types
+       return 20;
+}
+
+template<typename Object>
 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<Object>();
+               const int       itersBetweenSyncs       = numIters / 5;
+
+               DE_ASSERT(itersBetweenSyncs > 0);
 
                for (int iterNdx = 0; iterNdx < numIters; iterNdx++)
                {