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 1ec88ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/lib/ze_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ namespace ze_lib
result = zesDdiTableInit();
}
}
// Disable Intercept Enabled if requireDdiReinit such that calls to handle translation are skipped.
loader::context->intercept_enabled = false;
}
}

Expand Down

0 comments on commit 1ec88ec

Please # to comment.