diff --git a/shared/source/os_interface/product_helper_xe2_and_later.inl b/shared/source/os_interface/product_helper_xe2_and_later.inl index b3fa3b0e3a..c59dbe4a42 100644 --- a/shared/source/os_interface/product_helper_xe2_and_later.inl +++ b/shared/source/os_interface/product_helper_xe2_and_later.inl @@ -49,4 +49,9 @@ bool ProductHelperHw::isCompressionForbidden(const HardwareInfo &hwI return isCompressionForbiddenCommon(false); } +template <> +bool ProductHelperHw::isStagingBuffersEnabled() const { + return true; +} + } // namespace NEO diff --git a/shared/source/xe2_hpg_core/os_agnostic_product_helper_xe2_hpg_core.inl b/shared/source/xe2_hpg_core/os_agnostic_product_helper_xe2_hpg_core.inl index a9b3cc9dfb..67220bcd55 100644 --- a/shared/source/xe2_hpg_core/os_agnostic_product_helper_xe2_hpg_core.inl +++ b/shared/source/xe2_hpg_core/os_agnostic_product_helper_xe2_hpg_core.inl @@ -51,8 +51,4 @@ bool ProductHelperHw::isNewCoherencyModelSupported() const { return true; } -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 e070be3dec..a9cd78453a 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 @@ -89,3 +89,7 @@ PTLTEST_F(PtlProductHelper, givenExternalHostPtrWhenMitigateDcFlushThenOverrideC } } } + +PTLTEST_F(PtlProductHelper, givenProductHelperWhenCallIsStagingBuffersEnabledThenReturnTrue) { + EXPECT_TRUE(productHelper->isStagingBuffersEnabled()); +} \ No newline at end of file