performance: Allocate by KMD on BMG

Related-To: NEO-10526

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2024-12-03 14:01:51 +00:00
committed by Compute-Runtime-Automation
parent b408326de6
commit 331fffaeea
3 changed files with 28 additions and 0 deletions

View File

@@ -30,6 +30,17 @@ std::optional<aub_stream::ProductFamily> ProductHelperHw<gfxProduct>::getAubStre
return aub_stream::ProductFamily::Bmg;
};
template <>
std::optional<GfxMemoryAllocationMethod> ProductHelperHw<gfxProduct>::getPreferredAllocationMethod(AllocationType allocationType) const {
switch (allocationType) {
case AllocationType::tagBuffer:
case AllocationType::timestampPacketTagBuffer:
return {};
default:
return GfxMemoryAllocationMethod::allocateByKmd;
}
}
template <>
void ProductHelperHw<gfxProduct>::adjustNumberOfCcs(HardwareInfo &hwInfo) const {
hwInfo.gtSystemInfo.CCSInfo.NumberOfCCSEnabled = 1;