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
Этот коммит содержится в:
@@ -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();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user