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
Этот коммит содержится в:
German Andryeyev
2020-03-06 17:29:43 -05:00
родитель 5a153ed2cf
Коммит 288967eff4
+2 -1
Просмотреть файл
@@ -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();
}