mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +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
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user