mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Add EngineDescriptor helper
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bda53f9cbf
commit
fb996a3d5b
@@ -262,13 +262,10 @@ bool MemoryManager::isMemoryBudgetExhausted() const {
|
||||
}
|
||||
|
||||
OsContext *MemoryManager::createAndRegisterOsContext(CommandStreamReceiver *commandStreamReceiver,
|
||||
EngineTypeUsage typeUsage,
|
||||
DeviceBitfield deviceBitfield,
|
||||
PreemptionMode preemptionMode,
|
||||
bool rootDevice) {
|
||||
const EngineDescriptor &engineDescriptor) {
|
||||
auto contextId = ++latestContextId;
|
||||
auto osContext = OsContext::create(peekExecutionEnvironment().rootDeviceEnvironments[commandStreamReceiver->getRootDeviceIndex()]->osInterface.get(),
|
||||
contextId, deviceBitfield, typeUsage, preemptionMode, rootDevice);
|
||||
contextId, engineDescriptor);
|
||||
osContext->incRefInternal();
|
||||
|
||||
registeredEngines.emplace_back(commandStreamReceiver, osContext);
|
||||
|
||||
Reference in New Issue
Block a user