mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Check for nullptr before make resident
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3b91cc1b50
commit
be5a1c3d08
@@ -410,7 +410,9 @@ void CommandContainer::fillReusableAllocationLists() {
|
||||
heapSize,
|
||||
alignedSize,
|
||||
device->getRootDeviceIndex());
|
||||
this->immediateCmdListCsr->makeResident(*heapToReuse);
|
||||
if (heapToReuse != nullptr) {
|
||||
this->immediateCmdListCsr->makeResident(*heapToReuse);
|
||||
}
|
||||
this->heapHelper->storeHeapAllocation(heapToReuse);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user