mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
fix: make misaligned userptr 2-way coh on PTL
Related-To: NEO-15295 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a50c0dbecf
commit
d7151714e8
@@ -85,6 +85,8 @@ void PTL::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo, const ReleaseHelp
|
||||
featureTable->flags.ftrPml5Support = true;
|
||||
|
||||
featureTable->ftrBcsInfo = 1;
|
||||
hwInfo->workaroundTable.flags.wa_14018976079 = true;
|
||||
hwInfo->workaroundTable.flags.wa_14018984349 = true;
|
||||
}
|
||||
|
||||
void PTL::setupHardwareInfoBase(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const ReleaseHelper *releaseHelper) {
|
||||
|
||||
@@ -44,4 +44,9 @@ bool ProductHelperHw<gfxProduct>::isStagingBuffersEnabled() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ProductHelperHw<gfxProduct>::isMisalignedUserPtr2WayCoherent() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -155,3 +155,7 @@ LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsHostDeviceUsmPoolAll
|
||||
LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckDirectSubmissionSupportedThenTrueIsReturned) {
|
||||
EXPECT_TRUE(productHelper->isDirectSubmissionSupported(releaseHelper));
|
||||
}
|
||||
|
||||
LNLTEST_F(LnlProductHelper, givenProductHelperWhenIsMisalignedUserPtr2WayCoherentThenReturnTrue) {
|
||||
EXPECT_TRUE(productHelper->isMisalignedUserPtr2WayCoherent());
|
||||
}
|
||||
@@ -135,4 +135,8 @@ PTLTEST_F(PtlProductHelper, givenProductHelperWhenCheckingIsHostDeviceUsmPoolAll
|
||||
EXPECT_TRUE(productHelper->isHostUsmPoolAllocatorSupported());
|
||||
EXPECT_TRUE(productHelper->isDeviceUsmPoolAllocatorSupported());
|
||||
}
|
||||
}
|
||||
|
||||
PTLTEST_F(PtlProductHelper, givenProductHelperWhenIsMisalignedUserPtr2WayCoherentThenReturnTrue) {
|
||||
EXPECT_TRUE(productHelper->isMisalignedUserPtr2WayCoherent());
|
||||
}
|
||||
Reference in New Issue
Block a user