SWDEV-193956 - Fix a regression in OCL for user events

- Check the queue for nullptr, since the user events may not have
a queue, associated with them

Change-Id: Ib969a052acc9108ca3fd0c063157fe4d47c5b244


[ROCm/clr commit: 288967eff4]
This commit is contained in:
German Andryeyev
2020-03-06 17:29:43 -05:00
parent a3bcc34fc2
commit f70545256b
+2 -1
View File
@@ -190,7 +190,8 @@ bool Event::awaitCompletion() {
}
ClPrint(LOG_DEBUG, LOG_WAIT, "waiting for event %p to complete, current status %d", this, status_);
if (command().queue()->vdev()->ActiveWait()) {
auto* queue = command().queue();
if ((queue != nullptr) && queue->vdev()->ActiveWait()) {
while (status_ > CL_COMPLETE) {
amd::Os::yield();
}