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:
Kulkarni, Ashwin Kumar
2023-04-03 20:50:30 +00:00
committed by Compute-Runtime-Automation
parent d8e4b324ad
commit c93b084a4b
4 changed files with 42 additions and 9 deletions

View File

@@ -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;
}