mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Assign INTERNAL_FRONT_WINDOW heap for DebugModuleArea allocation
Related-To: NEO-4550 Change-Id: Ic3209a5777245f0d1c6231cb0ce22d5327372a65 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
785c9e70ec
commit
63d5c2b42a
@@ -18,16 +18,17 @@ HeapAssigner::HeapAssigner() {
|
||||
}
|
||||
bool HeapAssigner::useInternal32BitHeap(GraphicsAllocation::AllocationType allocType) {
|
||||
return allocType == GraphicsAllocation::AllocationType::KERNEL_ISA ||
|
||||
allocType == GraphicsAllocation::AllocationType::INTERNAL_HEAP;
|
||||
allocType == GraphicsAllocation::AllocationType::INTERNAL_HEAP ||
|
||||
allocType == GraphicsAllocation::AllocationType::DEBUG_MODULE_AREA;
|
||||
}
|
||||
bool HeapAssigner::use32BitHeap(GraphicsAllocation::AllocationType allocType) {
|
||||
return useExternal32BitHeap(allocType) || useInternal32BitHeap(allocType);
|
||||
}
|
||||
HeapIndex HeapAssigner::get32BitHeapIndex(GraphicsAllocation::AllocationType allocType, bool useLocalMem, const HardwareInfo &hwInfo, bool useExternalWindow) {
|
||||
HeapIndex HeapAssigner::get32BitHeapIndex(GraphicsAllocation::AllocationType allocType, bool useLocalMem, const HardwareInfo &hwInfo, bool useFrontWindow) {
|
||||
if (useInternal32BitHeap(allocType)) {
|
||||
return MemoryManager::selectInternalHeap(useLocalMem);
|
||||
return useFrontWindow ? mapInternalWindowIndex(MemoryManager::selectInternalHeap(useLocalMem)) : MemoryManager::selectInternalHeap(useLocalMem);
|
||||
}
|
||||
return useExternalWindow ? mapExternalWindowIndex(MemoryManager::selectExternalHeap(useLocalMem)) : MemoryManager::selectExternalHeap(useLocalMem);
|
||||
return useFrontWindow ? mapExternalWindowIndex(MemoryManager::selectExternalHeap(useLocalMem)) : MemoryManager::selectExternalHeap(useLocalMem);
|
||||
}
|
||||
bool HeapAssigner::useExternal32BitHeap(GraphicsAllocation::AllocationType allocType) {
|
||||
if (apiAllowExternalHeapForSshAndDsh) {
|
||||
|
||||
@@ -16,7 +16,7 @@ struct HeapAssigner {
|
||||
bool useExternal32BitHeap(GraphicsAllocation::AllocationType allocType);
|
||||
bool useInternal32BitHeap(GraphicsAllocation::AllocationType allocType);
|
||||
bool use32BitHeap(GraphicsAllocation::AllocationType allocType);
|
||||
HeapIndex get32BitHeapIndex(GraphicsAllocation::AllocationType allocType, bool useLocalMem, const HardwareInfo &hwInfo, bool useExternalWindow);
|
||||
HeapIndex get32BitHeapIndex(GraphicsAllocation::AllocationType allocType, bool useLocalMem, const HardwareInfo &hwInfo, bool useFrontWindow);
|
||||
static bool heapTypeWithFrontWindowPool(HeapIndex heap);
|
||||
static bool isInternalHeap(HeapIndex heap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user