From a7d42ac7c1dec1f9c93899513ed6919a939aeaed Mon Sep 17 00:00:00 2001 From: "Neil R. Spruit" Date: Tue, 27 Aug 2024 07:25:46 -0700 Subject: [PATCH] Fix handle translation when ddi table fallback - 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 --- source/lib/ze_lib.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/lib/ze_lib.cpp b/source/lib/ze_lib.cpp index 859af68e..8789e7a3 100644 --- a/source/lib/ze_lib.cpp +++ b/source/lib/ze_lib.cpp @@ -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