mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Set root device index in OsContext
- correclty choose default engine context accounting for root device index and subdevices bitfield Related-To: NEO-7516 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4882f51721
commit
f19abda0e2
@@ -19,15 +19,15 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
OsContext *OsContextLinux::create(OSInterface *osInterface, uint32_t contextId, const EngineDescriptor &engineDescriptor) {
|
||||
OsContext *OsContextLinux::create(OSInterface *osInterface, uint32_t rootDeviceIndex, uint32_t contextId, const EngineDescriptor &engineDescriptor) {
|
||||
if (osInterface) {
|
||||
return new OsContextLinux(*osInterface->getDriverModel()->as<Drm>(), contextId, engineDescriptor);
|
||||
return new OsContextLinux(*osInterface->getDriverModel()->as<Drm>(), rootDeviceIndex, contextId, engineDescriptor);
|
||||
}
|
||||
return new OsContext(contextId, engineDescriptor);
|
||||
return new OsContext(rootDeviceIndex, contextId, engineDescriptor);
|
||||
}
|
||||
|
||||
OsContextLinux::OsContextLinux(Drm &drm, uint32_t contextId, const EngineDescriptor &engineDescriptor)
|
||||
: OsContext(contextId, engineDescriptor),
|
||||
OsContextLinux::OsContextLinux(Drm &drm, uint32_t rootDeviceIndex, uint32_t contextId, const EngineDescriptor &engineDescriptor)
|
||||
: OsContext(rootDeviceIndex, contextId, engineDescriptor),
|
||||
drm(drm) {}
|
||||
|
||||
void OsContextLinux::initializeContext() {
|
||||
|
||||
Reference in New Issue
Block a user