fix: correct using L0 loader functions

use zelLoaderTranslateHandle for translating handle to internal handle
get pointer to zelSetDriverTeardown during global ctor
don't load loader library by name
get loader function pointers directly from current process

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-09-04 13:12:59 +00:00
committed by Compute-Runtime-Automation
parent a7c4256e65
commit 14fd9f3f24
15 changed files with 166 additions and 84 deletions

View File

@@ -12,6 +12,7 @@
struct _ze_image_handle_t {
const uint64_t objMagic = objMagicValue;
static const zel_handle_type_t handleType = ZEL_HANDLE_IMAGE;
};
namespace NEO {