SWDEV-278896 - Notify GPU about possible wait

Early notification allows CPU command state to be processed earlier.
Otherwise state update will be delayed until the actual possible
wait.

Change-Id: I0e9d6c2ad88e3723eab2f6dc9a20f288f6c1ca0c
Этот коммит содержится в:
German Andryeyev
2021-04-16 17:55:20 -04:00
родитель 03a0c84ad4
Коммит 9fc0bddbf0
+5
Просмотреть файл
@@ -182,6 +182,11 @@ void Event::addMarker(amd::HostQueue* queue, amd::Command* command, bool record)
}
event_ = &command->event();
// Notify queue earlier so SW status for the command can be updated faster,
// since marker potentially means a wait
if (AMD_DIRECT_DISPATCH && (flags & hipEventDisableTiming)) {
command->notifyCmdQueue();
}
recorded_ = record;
}