mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Change return code for APIs with no support in windows
Related-To: LOCI-3863 Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d8e4b324ad
commit
c93b084a4b
@@ -84,7 +84,14 @@ ze_result_t KmdSysManager::requestSingle(KmdSysman::RequestProperty &inputReques
|
||||
return ZE_RESULT_ERROR_INVALID_SIZE;
|
||||
}
|
||||
|
||||
if ((outputResponse.returnCode == KmdSysman::ReturnCodes::DomainServiceNotSupported) ||
|
||||
(outputResponse.returnCode == KmdSysman::ReturnCodes::GetNotSupported) ||
|
||||
(outputResponse.returnCode == KmdSysman::ReturnCodes::SetNotSupported)) {
|
||||
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
|
||||
}
|
||||
|
||||
return (outputResponse.returnCode == KmdSysman::KmdSysmanSuccess) ? ZE_RESULT_SUCCESS : ZE_RESULT_ERROR_NOT_AVAILABLE;
|
||||
|
||||
} else if (status == STATUS_DEVICE_REMOVED) {
|
||||
return ZE_RESULT_ERROR_DEVICE_LOST;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user