mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
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:
committed by
Compute-Runtime-Automation
parent
876052901d
commit
6d1c673a70
@@ -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>;
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user