Allow cpu buffers copy on DG2 in 32bit

Resolves: NEO-6906, NEO-6000

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2022-06-06 11:41:12 +00:00
committed by Compute-Runtime-Automation
parent fcd5930f10
commit 2055daf696
9 changed files with 109 additions and 2 deletions

View File

@@ -38,5 +38,11 @@ void HwHelperHw<Family>::setExtraAllocationData(AllocationData &allocationData,
allocationData.storageInfo.isLockable = false;
}
}
if (HwInfoConfig::get(hwInfo.platform.eProductFamily)->isStorageInfoAdjustmentRequired()) {
if (properties.allocationType == AllocationType::BUFFER && !properties.flags.preferCompressed && !properties.flags.shareable) {
allocationData.storageInfo.isLockable = true;
}
}
}
} // namespace NEO

View File

@@ -185,3 +185,11 @@ template <>
bool HwInfoConfigHw<gfxProduct>::isMatrixMultiplyAccumulateSupported(const HardwareInfo &hwInfo) const {
return true;
}
template <>
bool HwInfoConfigHw<gfxProduct>::isStorageInfoAdjustmentRequired() const {
if constexpr (is32bit) {
return true;
} else {
return false;
}
}