mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add zeDriverGetExtensionFunctionAddress to core API
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
04eca48ee0
commit
c8631f5bff
@ -32,6 +32,7 @@ zeGetDriverProcAddrTable(
|
||||
pDdiTable->pfnGetProperties = zeDriverGetProperties;
|
||||
pDdiTable->pfnGetIpcProperties = zeDriverGetIpcProperties;
|
||||
pDdiTable->pfnGetExtensionProperties = zeDriverGetExtensionProperties;
|
||||
pDdiTable->pfnGetExtensionFunctionAddress = zeDriverGetExtensionFunctionAddress;
|
||||
driver_ddiTable.core_ddiTable.Driver = *pDdiTable;
|
||||
if (driver_ddiTable.enableTracing) {
|
||||
pDdiTable->pfnGet = zeDriverGet_Tracing;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2020 Intel Corporation
|
||||
* Copyright (C) 2019-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@ -50,3 +50,11 @@ zeDriverGetExtensionProperties(
|
||||
ze_driver_extension_properties_t *pExtensionProperties) {
|
||||
return L0::DriverHandle::fromHandle(hDriver)->getExtensionProperties(pCount, pExtensionProperties);
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL
|
||||
zeDriverGetExtensionFunctionAddress(
|
||||
ze_driver_handle_t hDriver,
|
||||
const char *name,
|
||||
void **ppFunctionAddress) {
|
||||
return L0::DriverHandle::fromHandle(hDriver)->getExtensionFunctionAddress(name, ppFunctionAddress);
|
||||
}
|
Reference in New Issue
Block a user