mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
[22/n] Internal 4GB allocator.
- Finalize Instruction Heap removal. Change-Id: Idd7df94a228238a5157c3251180fc3c8d3a189df
This commit is contained in:
@ -217,11 +217,6 @@ uint32_t CommandQueue::getTaskLevelFromWaitList(uint32_t taskLevel,
|
||||
return taskLevel;
|
||||
}
|
||||
|
||||
size_t CommandQueue::getInstructionHeapReservedBlockSize() const {
|
||||
return alignUp(device->getCommandStreamReceiver().getInstructionHeapCmdStreamReceiverReservedSize(),
|
||||
MemoryConstants::cacheLineSize);
|
||||
}
|
||||
|
||||
IndirectHeap &CommandQueue::getIndirectHeap(IndirectHeap::Type heapType,
|
||||
size_t minRequiredSize) {
|
||||
DEBUG_BREAK_IF(static_cast<uint32_t>(heapType) >= ARRAY_COUNT(indirectHeap));
|
||||
@ -243,10 +238,6 @@ IndirectHeap &CommandQueue::getIndirectHeap(IndirectHeap::Type heapType,
|
||||
if (!heapMemory) {
|
||||
size_t reservedSize = 0;
|
||||
auto finalHeapSize = defaultHeapSize;
|
||||
if (heapType == IndirectHeap::INSTRUCTION) {
|
||||
finalHeapSize = optimalInstructionHeapSize;
|
||||
reservedSize = getInstructionHeapReservedBlockSize();
|
||||
}
|
||||
|
||||
minRequiredSize += reservedSize;
|
||||
|
||||
@ -274,11 +265,6 @@ IndirectHeap &CommandQueue::getIndirectHeap(IndirectHeap::Type heapType,
|
||||
heap = new IndirectHeap(heapMemory);
|
||||
heap->overrideMaxSize(finalHeapSize);
|
||||
}
|
||||
|
||||
if (heapType == IndirectHeap::INSTRUCTION) {
|
||||
device->getCommandStreamReceiver().initializeInstructionHeapCmdStreamReceiverReservedBlock(*heap);
|
||||
heap->align(MemoryConstants::cacheLineSize);
|
||||
}
|
||||
}
|
||||
|
||||
return *heap;
|
||||
|
Reference in New Issue
Block a user