fix: add unrecoverable in case of nullptr

Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-10-04 09:51:36 +00:00
committed by Compute-Runtime-Automation
parent 747d44f8fc
commit 6b3ad5b3e3
2 changed files with 2 additions and 0 deletions

View File

@@ -299,6 +299,7 @@ inline std::tuple<SvmAllocationData *, GraphicsAllocation *, PtrType> getExistin
GraphicsAllocation *allocation = nullptr;
if (svmData) {
allocation = svmData->gpuAllocations.getGraphicsAllocation(rootDeviceIndex);
UNRECOVERABLE_IF(!allocation);
} else {
context->tryGetExistingMapAllocation(ptr, size, allocation);
if (allocation) {

View File

@@ -1066,6 +1066,7 @@ void CommandStreamReceiverHw<GfxFamily>::collectStateBaseAddresPatchInfo(
typedef typename GfxFamily::STATE_BASE_ADDRESS STATE_BASE_ADDRESS;
if (imagesSupported) {
UNRECOVERABLE_IF(!dsh);
PatchInfoData dynamicStatePatchInfo = {dsh->getGraphicsAllocation()->getGpuAddress(), 0u, PatchInfoAllocationType::DynamicStateHeap, baseAddress, commandOffset + STATE_BASE_ADDRESS::PATCH_CONSTANTS::DYNAMICSTATEBASEADDRESS_BYTEOFFSET, PatchInfoAllocationType::Default};
flatBatchBufferHelper->setPatchInfoData(dynamicStatePatchInfo);
}