Skip to content

Commit 1fc8584

Browse files
authored
Avoid DDI table reinit if ZE_ENABLE_LOADER_INTERCEPT=1 (#187)
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
1 parent bb12735 commit 1fc8584

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/loader/ze_loader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ namespace loader
152152
}
153153
it = drivers->erase(it);
154154
// If the number of drivers is now ==1, then we need to reinit the ddi tables to pass through.
155-
if (drivers->size() == 1) {
155+
// If ZE_ENABLE_LOADER_INTERCEPT is set to 1, then even if drivers were removed, don't reinit the ddi tables.
156+
if (drivers->size() == 1 && !loader::context->forceIntercept) {
156157
*requireDdiReinit = true;
157158
}
158159
if(return_first_driver_result)

0 commit comments

Comments
 (0)