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
This commit is contained in:
@@ -182,6 +182,11 @@ void Event::addMarker(amd::HostQueue* queue, amd::Command* command, bool record)
|
|||||||
}
|
}
|
||||||
|
|
||||||
event_ = &command->event();
|
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;
|
recorded_ = record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user