mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
enable shared heaps feature on XE_HPC platforms
Related-To: NEO-7142 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1b669f52d8
commit
88113fbaad
@@ -191,7 +191,6 @@ void *CommandContainer::getHeapSpaceAllowGrow(HeapType heapType,
|
||||
if (immediateCmdListSharedHeap(heapType)) {
|
||||
UNRECOVERABLE_IF(indirectHeap == nullptr);
|
||||
UNRECOVERABLE_IF(indirectHeap->getAvailableSpace() < size);
|
||||
getResidencyContainer().push_back(indirectHeap->getGraphicsAllocation());
|
||||
} else {
|
||||
if (indirectHeap->getAvailableSpace() < size) {
|
||||
size_t newSize = indirectHeap->getUsed() + indirectHeap->getAvailableSpace();
|
||||
@@ -217,7 +216,6 @@ IndirectHeap *CommandContainer::getHeapWithRequiredSizeAndAlignment(HeapType hea
|
||||
|
||||
if (immediateCmdListSharedHeap(heapType)) {
|
||||
UNRECOVERABLE_IF(indirectHeap->getAvailableSpace() < sizeRequested);
|
||||
getResidencyContainer().push_back(indirectHeap->getGraphicsAllocation());
|
||||
} else {
|
||||
if (indirectHeap->getAvailableSpace() < sizeRequested) {
|
||||
size_t newSize = indirectHeap->getUsed() + indirectHeap->getAvailableSpace();
|
||||
|
||||
Reference in New Issue
Block a user