SWDEV-286092 - Use Barrier Header for event

Change-Id: I9701fbab587e2ea31e58449e8c8b07341a7aa161


[ROCm/clr commit: 0af6ba9428]
이 커밋은 다음에 포함됨:
Saleel Kudchadker 작성하고 Maneesh Gupta가 2021-08-22 23:56:07 -07:00를 커밋함
1 부모 5e002ce6f0
커밋 8919f9f434
1 파일이 변경됨
+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);
}