diff --git a/shared/source/xe_hpg_core/linux/product_helper_mtl.cpp b/shared/source/xe_hpg_core/linux/product_helper_mtl.cpp index 4c0ef2aa41..33675d906c 100644 --- a/shared/source/xe_hpg_core/linux/product_helper_mtl.cpp +++ b/shared/source/xe_hpg_core/linux/product_helper_mtl.cpp @@ -17,6 +17,11 @@ template <> bool ProductHelperHw::isDirectSubmissionSupported(const HardwareInfo &hwInfo) const { return true; } + +template <> +bool ProductHelperHw::isCachingOnCpuAvailable() const { + return false; +} } // namespace NEO template class NEO::ProductHelperHw; diff --git a/shared/source/xe_hpg_core/windows/product_helper_mtl.cpp b/shared/source/xe_hpg_core/windows/product_helper_mtl.cpp index 8368893a1f..12bf6e8b8b 100644 --- a/shared/source/xe_hpg_core/windows/product_helper_mtl.cpp +++ b/shared/source/xe_hpg_core/windows/product_helper_mtl.cpp @@ -17,6 +17,11 @@ template <> bool ProductHelperHw::isDirectSubmissionSupported(const HardwareInfo &hwInfo) const { return true; } + +template <> +bool ProductHelperHw::isCachingOnCpuAvailable() const { + return false; +} } // namespace NEO template class NEO::ProductHelperHw; diff --git a/shared/source/xe_hpg_core/xe_lpg/os_agnostic_product_helper_xe_lpg.inl b/shared/source/xe_hpg_core/xe_lpg/os_agnostic_product_helper_xe_lpg.inl index 3f7a2b1857..7ae1abbac6 100644 --- a/shared/source/xe_hpg_core/xe_lpg/os_agnostic_product_helper_xe_lpg.inl +++ b/shared/source/xe_hpg_core/xe_lpg/os_agnostic_product_helper_xe_lpg.inl @@ -64,11 +64,6 @@ bool ProductHelperHw::isDummyBlitWaRequired() const { return true; } -template <> -bool ProductHelperHw::isCachingOnCpuAvailable() const { - return false; -} - template <> bool ProductHelperHw::isResolveDependenciesByPipeControlsSupported(const HardwareInfo &hwInfo, bool isOOQ, TaskCountType queueTaskCount, const CommandStreamReceiver &queueCsr) const { const bool enabled = !isOOQ && queueTaskCount == queueCsr.peekTaskCount(); diff --git a/shared/test/unit_test/xe_hpg_core/mtl/product_helper_tests_mtl.cpp b/shared/test/unit_test/xe_hpg_core/mtl/product_helper_tests_mtl.cpp index ab2a5cd5cb..2a429cf227 100644 --- a/shared/test/unit_test/xe_hpg_core/mtl/product_helper_tests_mtl.cpp +++ b/shared/test/unit_test/xe_hpg_core/mtl/product_helper_tests_mtl.cpp @@ -24,4 +24,8 @@ MTLTEST_F(MtlProductHelper, givenCompilerProductHelperWhenGetDefaultHwIpVersionT MTLTEST_F(MtlProductHelper, givenProductHelperWhenCheckDirectSubmissionSupportedThenTrueIsReturned) { EXPECT_TRUE(productHelper->isDirectSubmissionSupported(*defaultHwInfo)); +} + +MTLTEST_F(MtlProductHelper, whenCheckIsCachingOnCpuAvailableThenAlwaysFalse) { + EXPECT_FALSE(productHelper->isCachingOnCpuAvailable()); } \ No newline at end of file diff --git a/shared/test/unit_test/xe_hpg_core/os_agnostic_product_helper_xe_lpg_tests.cpp b/shared/test/unit_test/xe_hpg_core/os_agnostic_product_helper_xe_lpg_tests.cpp index 286ca29721..6deb123350 100644 --- a/shared/test/unit_test/xe_hpg_core/os_agnostic_product_helper_xe_lpg_tests.cpp +++ b/shared/test/unit_test/xe_hpg_core/os_agnostic_product_helper_xe_lpg_tests.cpp @@ -291,10 +291,6 @@ HWTEST2_F(XeLpgProductHelperTests, givenReleaseHelperNullptrWhenCallingGetMediaF EXPECT_FALSE(productHelper->getMediaFrequencyTileIndex(releaseHelper, tileIndex)); } -HWTEST2_F(XeLpgProductHelperTests, whenCheckIsCachingOnCpuAvailableThenAlwaysFalse, IsXeLpg) { - EXPECT_FALSE(productHelper->isCachingOnCpuAvailable()); -} - HWTEST2_F(XeLpgProductHelperTests, whenCheckFp64SupportThenReturnTrue, IsXeLpg) { EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsFP64); }