Pass TimestampPacket to dispatchWalker during enqueue call

Change-Id: Ia2b9206d4c2bb69232bfe9e7d68d195f3a558926
This commit is contained in:
Dunajski, Bartosz
2018-08-31 12:22:57 +02:00
committed by sys_ocldev
parent 1d7d376262
commit c014c49102
2 changed files with 33 additions and 1 deletions

View File

@@ -241,8 +241,10 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
}
}
TimestampPacket *timestampPacket = nullptr;
if (DebugManager.flags.EnableTimestampPacket.get()) {
obtainNewTimestampPacketNode();
timestampPacket = timestampPacketNode->tag;
}
if (eventBuilder.getEvent()) {
@@ -279,7 +281,7 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
&blockedCommandsData,
hwTimeStamps,
hwPerfCounter,
nullptr,
timestampPacket,
preemption,
blockQueue,
commandType);