fix: stop direct submission before oa configuration activation

Related-To: NEO-12778
Signed-off-by: Robert Krzemień <robert.krzemien@intel.com>
This commit is contained in:
Robert Krzemień
2024-10-22 12:56:08 +00:00
committed by Compute-Runtime-Automation
parent 01a0b8e7f7
commit fe1fd22371
13 changed files with 205 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2023 Intel Corporation
* Copyright (C) 2018-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -29,6 +29,8 @@ std::unique_ptr<PerformanceCounters> PerformanceCounters::create(Device *device)
counter->clientData.Windows.KmdInstrumentationEnabled = device->getHardwareInfo().capabilityTable.instrumentationEnabled;
counter->contextData.ClientData = &counter->clientData;
counter->clientType.Gen = static_cast<MetricsLibraryApi::ClientGen>(gfxCoreHelper.getMetricsLibraryGenId());
counter->metricsLibrary->api->callbacks.CommandBufferFlush = &PerformanceCounters::flushCommandBufferCallback;
counter->clientData.Handle = reinterpret_cast<void *>(device);
return counter;
}