mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
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:
committed by
Compute-Runtime-Automation
parent
901f7c2cb7
commit
d8a4f92856
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user