From: Jari Komppa Date: Tue, 27 Jun 2017 12:14:25 +0000 (+0300) Subject: Added logging of thread count in some mt tests X-Git-Tag: upstream/0.1.0~214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e6e636410e9d866fe2c6da9e8e0dd5d3a458aac;p=platform%2Fupstream%2FVK-GL-CTS.git Added logging of thread count in some mt tests This allows checking between two runs of the test suite to verify that the same number of threads were used when running the tests. The number of threads is (already) clamped between 2 and 8. Affects: dEQP-VK.api.object_management.multithreaded_per_thread_device* Components: Vulkan VK-GL-CTS issue: 80 Change-Id: I23ad351377a539865f42c1d57f3e01bb81be17e0 --- diff --git a/external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp index 41055f7..7f52d87 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp @@ -2370,6 +2370,7 @@ tcu::TestStatus multithreadedCreatePerThreadDeviceTest (Context& context, typena typedef SharedPtr EnvPtr; typedef SharedPtr ResPtr; + TestLog& log = context.getTestContext().getLog(); const deUint32 numThreads = getDefaultTestThreadCount(); const Device::Parameters deviceParams = getDefaulDeviceParameters(context); const Environment sharedEnv (context, numThreads); // For creating Device's @@ -2377,6 +2378,8 @@ tcu::TestStatus multithreadedCreatePerThreadDeviceTest (Context& context, typena vector resources (numThreads); ThreadGroup threads; + log << TestLog::Message << "numThreads = " << numThreads << TestLog::EndMessage; + for (deUint32 ndx = 0; ndx < numThreads; ndx++) { perThreadEnv[ndx] = EnvPtr(new EnvClone(sharedEnv, deviceParams, 1u));