mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
fix: Skip adding device to list if context creation fails
Propogate error codes from ioctl failure properly up the layers so that we skip exposing bad root devices. Related-To: NEO-7709 Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
95bea7c92b
commit
d75c4d3ec7
@@ -215,7 +215,9 @@ CommandQueue *CommandQueue::create(uint32_t productFamily, Device *device, NEO::
|
||||
osContext.setUmdPowerHintValue(driverHandleImp->powerHint);
|
||||
osContext.reInitializeContext();
|
||||
}
|
||||
|
||||
csr->initializeResources();
|
||||
|
||||
csr->initDirectSubmission();
|
||||
return commandQueue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user