SWDEV-252150 - No need to send a Marker if the event is completed in Event::notifyCmdQueue()

Change-Id: Iaa1c550ce0849c12298a24812604345dbf877a5e
Этот коммит содержится в:
Jason Tang authored and Jason Tang committed 2020-10-14 09:29:24 -04:00
1 родитель b38317cb3c
Коммит c5184d61b4
1 file changed
+1 -1
+1 -1
Просмотреть файл
@@ -212,7 +212,7 @@ bool Event::awaitCompletion() {
bool Event::notifyCmdQueue() {
HostQueue* queue = command().queue();
if ((NULL != queue) && !notified_.test_and_set()) {
if ((status() > CL_COMPLETE) && (NULL != queue) && !notified_.test_and_set()) {
// Make sure the queue is draining the enqueued commands.
amd::Command* command = new amd::Marker(*queue, false, nullWaitList, this);
if (command == NULL) {