Skip to content

Commit

Permalink
Fix handle translation when ddi table fallback
Browse files Browse the repository at this point in the history
- When enough drivers are removed that ddi table fallback is completed,
  then intercept_enabled needs to be set to false such that handle
translation is done correctly.

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
  • Loading branch information
nrspruit committed Aug 27, 2024
1 parent cba2c7d commit b2a12c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions source/lib/ze_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ namespace ze_lib
{
result = zetDdiTableInit();
}
// Disable intercept_enabled if requireDdiReinit such that calls to ze handle translation are skipped.
loader::context->intercept_enabled = false;
}
if (sysmanOnly || sysmanEnv) {
// reInit the ZES DDI Tables
Expand Down
2 changes: 1 addition & 1 deletion source/loader/ze_loader_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ zelLoaderGetVersionsInternal(
ZE_DLLEXPORT ze_result_t ZE_APICALL
zelLoaderTranslateHandleInternal(
zel_handle_type_t handleType,
void *handleIn,
void *handleIn,
void **handleOut)
{

Expand Down

0 comments on commit b2a12c3

Please # to comment.