mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
MemoryManager: don't access command stream receivers from execution environment
Related-To: NEO-3691, NEO-3857 Change-Id: I8d83456f4164d2b25d78bffa368cffe988c498b0 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
278d660cdc
commit
c8664b50a4
@@ -684,8 +684,8 @@ int DrmMemoryManager::obtainFdFromHandle(int boHandle) {
|
||||
}
|
||||
|
||||
uint32_t DrmMemoryManager::getDefaultDrmContextId() const {
|
||||
auto &osContextLinux = static_cast<OsContextLinux &>(getDefaultCommandStreamReceiver(0)->getOsContext());
|
||||
return osContextLinux.getDrmContextIds()[0];
|
||||
auto osContextLinux = static_cast<OsContextLinux *>(registeredEngines[defaultEngineIndex].osContext);
|
||||
return osContextLinux->getDrmContextIds()[0];
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user