Add error handling in allocateGraphicsMemoryForImageImpl and improve ULTs

Change-Id: I418a888fe31d5a7f008bdcfa0a3aabb77bc4df39
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-09-10 11:55:38 +02:00
committed by sys_ocldev
parent fa8fc3fc43
commit 6ab6a06b1b
5 changed files with 44 additions and 8 deletions

View File

@ -273,7 +273,9 @@ GraphicsAllocation *OsAgnosticMemoryManager::allocateGraphicsMemoryForImageImpl(
if (allocationData.imgInfo->linearStorage && allocationData.imgInfo->mipCount == 0) {
alloc = allocateGraphicsMemoryWithAlignment(allocationData);
alloc->setDefaultGmm(gmm.release());
if (alloc) {
alloc->setDefaultGmm(gmm.release());
}
return alloc;
}