mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix: stop exposing L0 1.14 API via zeDriverGetExtensionFunctionAddress
Related-To: NEO-14560 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5d75857c20
commit
9ebae1dd57
@@ -7,7 +7,6 @@
|
||||
|
||||
#include "level_zero/core/source/driver/extension_function_address.h"
|
||||
|
||||
#include "level_zero/api/core/preview_api_entrypoints.h"
|
||||
#include "level_zero/api/extensions/public/ze_exp_ext.h"
|
||||
#include "level_zero/driver_experimental/mcl_ext/zex_mutable_cmdlist_ext.h"
|
||||
#include "level_zero/driver_experimental/zex_api.h"
|
||||
@@ -28,29 +27,12 @@ void *ExtensionFunctionAddressHelper::getExtensionFunctionAddress(const std::str
|
||||
} \
|
||||
}
|
||||
|
||||
#define RETURN_L0_FUNC_PTR_IF_EXIST(name) \
|
||||
{ \
|
||||
if (functionName == #name) { \
|
||||
void *ret = ((void *)(L0::name)); \
|
||||
return ret; \
|
||||
} \
|
||||
}
|
||||
|
||||
RETURN_FUNC_PTR_IF_EXIST(zexDriverImportExternalPointer);
|
||||
RETURN_FUNC_PTR_IF_EXIST(zexDriverReleaseImportedPointer);
|
||||
RETURN_FUNC_PTR_IF_EXIST(zexDriverGetHostPointerBaseAddress);
|
||||
RETURN_L0_FUNC_PTR_IF_EXIST(zeDriverGetDefaultContext);
|
||||
RETURN_L0_FUNC_PTR_IF_EXIST(zerGetDefaultContext);
|
||||
RETURN_L0_FUNC_PTR_IF_EXIST(zerGetLastErrorDescription);
|
||||
|
||||
RETURN_L0_FUNC_PTR_IF_EXIST(zerTranslateDeviceHandleToIdentifier);
|
||||
RETURN_L0_FUNC_PTR_IF_EXIST(zerTranslateIdentifierToDeviceHandle);
|
||||
RETURN_L0_FUNC_PTR_IF_EXIST(zeDeviceSynchronize);
|
||||
RETURN_FUNC_PTR_IF_EXIST(zeDeviceGetPriorityLevels);
|
||||
|
||||
RETURN_L0_FUNC_PTR_IF_EXIST(zeCommandListAppendLaunchKernelWithArguments);
|
||||
RETURN_L0_FUNC_PTR_IF_EXIST(zeCommandListAppendLaunchKernelWithParameters);
|
||||
|
||||
RETURN_FUNC_PTR_IF_EXIST(zexKernelGetBaseAddress);
|
||||
RETURN_FUNC_PTR_IF_EXIST(zexKernelGetArgumentSize);
|
||||
RETURN_FUNC_PTR_IF_EXIST(zexKernelGetArgumentType);
|
||||
@@ -150,7 +132,6 @@ void *ExtensionFunctionAddressHelper::getExtensionFunctionAddress(const std::str
|
||||
RETURN_FUNC_PTR_IF_EXIST(zeGraphDumpContentsExp);
|
||||
|
||||
#undef RETURN_FUNC_PTR_IF_EXIST
|
||||
#undef RETURN_L0_FUNC_PTR_IF_EXIST
|
||||
|
||||
return ExtensionFunctionAddressHelper::getAdditionalExtensionFunctionAddress(functionName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user