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

@@ -396,10 +396,6 @@ void MemoryManager::unregisterEngineForCsr(CommandStreamReceiver *commandStreamR
}
}
CommandStreamReceiver *MemoryManager::getDefaultCommandStreamReceiver(uint32_t deviceId) const {
return peekExecutionEnvironment().commandStreamReceivers[deviceId][defaultEngineIndex].get();
}
void *MemoryManager::lockResource(GraphicsAllocation *graphicsAllocation) {
if (!graphicsAllocation) {
return nullptr;

View File

@@ -149,7 +149,6 @@ class MemoryManager {
OsContext *createAndRegisterOsContext(CommandStreamReceiver *commandStreamReceiver, aub_stream::EngineType engineType,
DeviceBitfield deviceBitfield, PreemptionMode preemptionMode, bool lowPriority);
uint32_t getRegisteredEnginesCount() const { return static_cast<uint32_t>(registeredEngines.size()); }
CommandStreamReceiver *getDefaultCommandStreamReceiver(uint32_t deviceId) const;
EngineControlContainer &getRegisteredEngines();
EngineControl *getRegisteredEngineForCsr(CommandStreamReceiver *commandStreamReceiver);
void unregisterEngineForCsr(CommandStreamReceiver *commandStreamReceiver);