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:
Zbigniew Zdanowicz
2022-10-04 17:21:09 +00:00
committed by Compute-Runtime-Automation
parent 1b669f52d8
commit 88113fbaad
4 changed files with 24 additions and 5 deletions

View File

@@ -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();