From 03781a0e2b659a3188beeeb992c1f19ce4b74870 Mon Sep 17 00:00:00 2001 From: Dominik Dabek Date: Fri, 14 Nov 2025 15:05:16 +0000 Subject: [PATCH] performance: defer internal context init, ptl only on windows Related-To: NEO-16633 Signed-off-by: Dominik Dabek --- shared/source/xe3_core/windows/product_helper_ptl.cpp | 5 +++++ .../ptl/windows/product_helper_tests_ptl_windows.cpp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/shared/source/xe3_core/windows/product_helper_ptl.cpp b/shared/source/xe3_core/windows/product_helper_ptl.cpp index dda131f89d..dd5ac0130a 100644 --- a/shared/source/xe3_core/windows/product_helper_ptl.cpp +++ b/shared/source/xe3_core/windows/product_helper_ptl.cpp @@ -17,6 +17,11 @@ constexpr static auto gfxProduct = IGFX_PTL; namespace NEO { +template <> +bool ProductHelperHw::initializeInternalEngineImmediately() const { + return false; +} + template class ProductHelperHw; } // namespace NEO diff --git a/shared/test/unit_test/xe3_core/ptl/windows/product_helper_tests_ptl_windows.cpp b/shared/test/unit_test/xe3_core/ptl/windows/product_helper_tests_ptl_windows.cpp index 321d6ead60..c2bc3e1882 100644 --- a/shared/test/unit_test/xe3_core/ptl/windows/product_helper_tests_ptl_windows.cpp +++ b/shared/test/unit_test/xe3_core/ptl/windows/product_helper_tests_ptl_windows.cpp @@ -33,4 +33,8 @@ PTLTEST_F(PtlProductHelperWindows, givenOverrideDirectSubmissionTimeoutsCalledTh productHelper->overrideDirectSubmissionTimeouts(timeoutUs, maxTimeoutUs); EXPECT_EQ(timeoutUs, 2'000ull); EXPECT_EQ(maxTimeoutUs, 3'000ull); +} + +PTLTEST_F(PtlProductHelperWindows, givenCheckingInitializeInternalEngineImmediatelyThenReturnFalse) { + EXPECT_FALSE(productHelper->initializeInternalEngineImmediately()); } \ No newline at end of file