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

Change-Id: Iaa1c550ce0849c12298a24812604345dbf877a5e
Šī revīzija ir iekļauta:
Jason Tang
2020-10-07 17:20:20 -04:00
revīziju iesūtīja Jason Tang
vecāks b38317cb3c
revīzija c5184d61b4
+1 -1
Parādīt failu
@@ -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) {