Skip to content

Commit

Permalink
Avoid DDI table reinit if ZE_ENABLE_LOADER_INTERCEPT=1 (#187)
Browse files Browse the repository at this point in the history
Signed-off-by: Neil R. Spruit <[email protected]>
  • Loading branch information
nrspruit authored Aug 28, 2024
1 parent bb12735 commit 1fc8584
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/loader/ze_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ namespace loader
}
it = drivers->erase(it);
// If the number of drivers is now ==1, then we need to reinit the ddi tables to pass through.
if (drivers->size() == 1) {
// If ZE_ENABLE_LOADER_INTERCEPT is set to 1, then even if drivers were removed, don't reinit the ddi tables.
if (drivers->size() == 1 && !loader::context->forceIntercept) {
*requireDdiReinit = true;
}
if(return_first_driver_result)
Expand Down

0 comments on commit 1fc8584

Please sign in to comment.