mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 21:42:53 +08:00
Change default placement of preemption allocation
Related-To: NEO-5800 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cc914ffde3
commit
544890c066
@@ -567,9 +567,9 @@ bool CommandStreamReceiver::createPreemptionAllocation() {
|
||||
if (DebugManager.flags.OverrideCsrAllocationSize.get() > 0) {
|
||||
preemptionSurfaceSize = DebugManager.flags.OverrideCsrAllocationSize.get();
|
||||
}
|
||||
AllocationProperties properties{rootDeviceIndex, preemptionSurfaceSize, GraphicsAllocation::AllocationType::PREEMPTION, deviceBitfield};
|
||||
AllocationProperties properties{rootDeviceIndex, true, preemptionSurfaceSize, GraphicsAllocation::AllocationType::PREEMPTION, isMultiOsContextCapable(), false, deviceBitfield};
|
||||
properties.flags.uncacheable = hwInfo->workaroundTable.waCSRUncachable;
|
||||
properties.alignment = 256 * MemoryConstants::kiloByte;
|
||||
properties.alignment = HwHelper::get(hwInfo->platform.eRenderCoreFamily).getPreemptionAllocationAlignment();
|
||||
this->preemptionAllocation = getMemoryManager()->allocateGraphicsMemoryWithProperties(properties);
|
||||
return this->preemptionAllocation != nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user