mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
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:
committed by
sys_ocldev
parent
65d706bdc3
commit
9e7c30cb06
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user