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:
Mateusz Jablonski
2019-10-22 13:29:39 +02:00
committed by sys_ocldev
parent 278d660cdc
commit c8664b50a4
10 changed files with 153 additions and 82 deletions

View File

@@ -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