SWDEV-286092 - Use Barrier Header for event

Change-Id: I9701fbab587e2ea31e58449e8c8b07341a7aa161


[ROCm/clr commit: 0af6ba9428]
Этот коммит содержится в:
Saleel Kudchadker authored and Maneesh Gupta committed 2021-08-22 23:56:07 -07:00
1 родитель 5e002ce6f0
Коммит 8919f9f434
1 file changed
+2 -8
+2 -8
Просмотреть файл
@@ -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);
}