mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Dont initialize sysman for linux if Driver Model is not DRM
Related-To: LOCI-2533 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7bc26e9f95
commit
135ec380fc
@@ -24,6 +24,9 @@ ze_result_t LinuxSysmanImp::init() {
|
||||
pDevice = Device::fromHandle(pParentSysmanDeviceImp->hCoreDevice);
|
||||
DEBUG_BREAK_IF(nullptr == pDevice);
|
||||
NEO::OSInterface &OsInterface = pDevice->getOsInterface();
|
||||
if (OsInterface.getDriverModel()->getDriverModelType() != NEO::DriverModelType::DRM) {
|
||||
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
|
||||
}
|
||||
pDrm = OsInterface.getDriverModel()->as<NEO::Drm>();
|
||||
int myDeviceFd = pDrm->getFileDescriptor();
|
||||
std::string myDeviceName;
|
||||
|
||||
Reference in New Issue
Block a user