fix: don't include perf counters in timestamp profiling

Resolves: GSD-10387
Signed-off-by: Robert Krzemień <robert.krzemien@intel.com>
This commit is contained in:
Robert Krzemień
2024-11-27 15:35:20 +00:00
committed by Compute-Runtime-Automation
parent 901f7c2cb7
commit d8a4f92856

View File

@@ -42,13 +42,13 @@ inline void HardwareInterface<GfxFamily>::dispatchProfilingPerfStartCommands(
LinearStream *commandStream,
CommandQueue &commandQueue) {
if (hwPerfCounter != nullptr) {
GpgpuWalkerHelper<GfxFamily>::dispatchPerfCountersCommandsStart(commandQueue, *hwPerfCounter, commandStream);
}
// If hwTimeStampAlloc is passed (not nullptr), then we know that profiling is enabled
if (hwTimeStamps != nullptr) {
GpgpuWalkerHelper<GfxFamily>::dispatchProfilingCommandsStart(*hwTimeStamps, commandStream, commandQueue.getDevice().getRootDeviceEnvironment());
}
if (hwPerfCounter != nullptr) {
GpgpuWalkerHelper<GfxFamily>::dispatchPerfCountersCommandsStart(commandQueue, *hwPerfCounter, commandStream);
}
}
template <typename GfxFamily>