Use HEAP_STANDARD64Kb when cpu access is required

Change-Id: I3a451b618f1b72836cd640ed510e874cf2d60624
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
Jablonski, Mateusz
2019-02-18 10:49:21 +01:00
committed by sys_ocldev
parent aa587b3bc5
commit ed6381a66a
6 changed files with 48 additions and 13 deletions

View File

@@ -1006,6 +1006,9 @@ HeapIndex Wddm::selectHeap(const WddmAllocation *allocation, const void *ptr) co
if (ptr) {
return HeapIndex::HEAP_SVM;
}
if (allocation && GraphicsAllocation::isCpuAccessRequired(allocation->getAllocationType())) {
return HeapIndex::HEAP_STANDARD64Kb;
}
return HeapIndex::HEAP_STANDARD;
}
return HeapIndex::HEAP_LIMITED;