SWDEV-286092 - Use Barrier Header for event

Change-Id: I9701fbab587e2ea31e58449e8c8b07341a7aa161


[ROCm/clr commit: 0af6ba9428]
This commit is contained in:
Saleel Kudchadker
2021-06-10 10:55:32 -07:00
committed by Maneesh Gupta
parent 5e002ce6f0
commit 8919f9f434
@@ -2920,14 +2920,8 @@ void VirtualGPU::submitMarker(amd::Marker& vcmd) {
if (vcmd.profilingInfo().marker_ts_) {
profilingBegin(vcmd);
if (timestamp_ != nullptr) {
// If there was a pending dispatch use a Barrier packet
// with cache flushes. This saves on additional barrier
// for cache flushes explicitly and helps wall time
dispatchBarrierPacket(kNopPacketHeader);
// Direct dispatch requires a barrier with callback and hasPendingDispatch_ triggers that
if (AMD_DIRECT_DISPATCH) {
hasPendingDispatch_ = true;
}
// Submit a barrier with a cache flushes.
dispatchBarrierPacket(kBarrierPacketHeader);
}
profilingEnd(vcmd);
}