mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
fa8fc3fc43
commit
6ab6a06b1b
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user