Limit VkInstance count in object_management.multithreaded*
authorPyry Haulos <phaulos@google.com>
Thu, 11 Aug 2016 21:14:23 +0000 (14:14 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 25 Aug 2016 20:28:00 +0000 (13:28 -0700)
Bug: 30811856
Change-Id: I00e4279216de8cb9f8e5089cecf98726366d221b

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

index 36eaee2..f5eb2bf 100644 (file)
@@ -2124,18 +2124,12 @@ tcu::TestStatus createMaxConcurrentTest (Context& context, typename Object::Para
        return tcu::TestStatus::pass("Ok");
 }
 
-template<typename Object>
-int getCreateCount (void)
-{
-       return 100;
-}
+// How many objects to create per thread
+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;
-}
+// Creating VkDevice and VkInstance can take significantly longer than other object types
+template<>                                     int getCreateCount<Instance>    (void) { return 20;             }
+template<>                                     int getCreateCount<Device>              (void) { return 20;             }
 
 template<typename Object>
 class CreateThread : public ThreadGroupThread