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

Change-Id: Iaa1c550ce0849c12298a24812604345dbf877a5e
이 커밋은 다음에 포함됨:
Jason Tang
2020-10-07 17:20:20 -04:00
커밋한 사람 Jason Tang
부모 b38317cb3c
커밋 c5184d61b4
+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) {