Move command buffer to local memory on XE_HPG

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2022-06-24 12:33:41 +00:00
committed by Compute-Runtime-Automation
parent 5956aea18d
commit 4676f2f023
2 changed files with 26 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ void HwHelperHw<Family>::setExtraAllocationData(AllocationData &allocationData,
allocationData.flags.requiresCpuAccess = false;
allocationData.storageInfo.isLockable = false;
}
} else if (hwInfo.featureTable.flags.ftrLocalMemory &&
properties.allocationType == AllocationType::COMMAND_BUFFER) {
allocationData.flags.useSystemMemory = false;
allocationData.flags.requiresCpuAccess = true;
}
if (hwInfoConfig.allowStatelessCompression(hwInfo)) {