Choose Standard or Standard64 heap depending on 64KB suitablity of resource

Change-Id: I633b1bef1cdef2c5149909c997adc85434bcaf73
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
Jablonski, Mateusz
2019-02-19 16:14:18 +01:00
committed by sys_ocldev
parent 65d706bdc3
commit 9e7c30cb06
4 changed files with 23 additions and 16 deletions

View File

@@ -388,7 +388,7 @@ HeapIndex MemoryManager::selectHeap(const GraphicsAllocation *allocation, const
if (ptr) {
return HeapIndex::HEAP_SVM;
}
if (allocation && GraphicsAllocation::isCpuAccessRequired(allocation->getAllocationType())) {
if (allocation && allocation->gmm->gmmResourceInfo->is64KBPageSuitable()) {
return HeapIndex::HEAP_STANDARD64Kb;
}
return HeapIndex::HEAP_STANDARD;