fix: correct scope of isCachingOnCpuAvailable within xe lpg

Related-To: HSD-18033144631, HSD-18033158637
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-09-05 08:28:27 +00:00
committed by Compute-Runtime-Automation
parent 876052901d
commit 6d1c673a70
5 changed files with 14 additions and 9 deletions

View File

@@ -17,6 +17,11 @@ template <>
bool ProductHelperHw<gfxProduct>::isDirectSubmissionSupported(const HardwareInfo &hwInfo) const {
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::isCachingOnCpuAvailable() const {
return false;
}
} // namespace NEO
template class NEO::ProductHelperHw<gfxProduct>;

View File

@@ -17,6 +17,11 @@ template <>
bool ProductHelperHw<gfxProduct>::isDirectSubmissionSupported(const HardwareInfo &hwInfo) const {
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::isCachingOnCpuAvailable() const {
return false;
}
} // namespace NEO
template class NEO::ProductHelperHw<gfxProduct>;

View File

@@ -64,11 +64,6 @@ bool ProductHelperHw<gfxProduct>::isDummyBlitWaRequired() const {
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::isCachingOnCpuAvailable() const {
return false;
}
template <>
bool ProductHelperHw<gfxProduct>::isResolveDependenciesByPipeControlsSupported(const HardwareInfo &hwInfo, bool isOOQ, TaskCountType queueTaskCount, const CommandStreamReceiver &queueCsr) const {
const bool enabled = !isOOQ && queueTaskCount == queueCsr.peekTaskCount();

View File

@@ -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());
}

View File

@@ -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);
}