From ef9eb2f7033dfbb269e97dab23f8df398a1bb112 Mon Sep 17 00:00:00 2001 From: Szymon Morek Date: Fri, 9 May 2025 08:48:01 +0000 Subject: [PATCH] performance: enable staging buffers on PTL Related-To: NEO-14820 Signed-off-by: Szymon Morek --- .../source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl | 5 +++++ .../test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/shared/source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl b/shared/source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl index 7aed166da9..382788005b 100644 --- a/shared/source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl +++ b/shared/source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl @@ -39,4 +39,9 @@ bool ProductHelperHw::isCachingOnCpuAvailable() const { return false; } +template <> +bool ProductHelperHw::isStagingBuffersEnabled() const { + return true; +} + } // namespace NEO diff --git a/shared/test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp b/shared/test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp index bfb9174042..fefc3a77a2 100644 --- a/shared/test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp +++ b/shared/test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp @@ -61,6 +61,10 @@ PTLTEST_F(PtlProductHelper, givenProductHelperWhenCallIsCachingOnCpuAvailableThe EXPECT_FALSE(productHelper->isCachingOnCpuAvailable()); } +PTLTEST_F(PtlProductHelper, givenProductHelperWhenCallIsStagingBuffersEnabledThenReturnTrue) { + EXPECT_TRUE(productHelper->isStagingBuffersEnabled()); +} + PTLTEST_F(PtlProductHelper, givenDebugFlagWhenCheckingIsResolveDependenciesByPipeControlsSupportedThenTheFlagDerivedValueIsReturned) { DebugManagerStateRestore restorer;