Improve TimestampPacketWriteEnabled condition check

Change-Id: I2117dbd7841e65ed87241c0b08fafe058019b690
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2018-11-07 11:08:35 +01:00
committed by sys_ocldev
parent f0c9e99ce7
commit e0f782e77a

View File

@@ -221,7 +221,7 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
}
if (eventBuilder.getEvent()) {
if (timestampPacketContainer.get()) {
if (commandStreamReceiver.peekTimestampPacketWriteEnabled()) {
eventBuilder.getEvent()->addTimestampPacketNodes(*timestampPacketContainer);
}
if (this->isProfilingEnabled()) {