Apply memory flag when creating Gmm with image info

Resolves: NEO-3294

Change-Id: I2702611c5b3b2ccd8d48219b90479a6fd3fbe1f7
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-06-11 16:03:05 +02:00
committed by sys_ocldev
parent cf78aab248
commit b04fc1121e
9 changed files with 14 additions and 13 deletions

View File

@@ -521,7 +521,7 @@ GraphicsAllocation *DrmMemoryManager::createGraphicsAllocationFromSharedHandle(o
((void)(ret));
properties.imgInfo->tilingMode = TilingModeHelper::convert(getTiling.tiling_mode);
Gmm *gmm = new Gmm(*properties.imgInfo);
Gmm *gmm = new Gmm(*properties.imgInfo, createStorageInfoFromProperties(properties));
drmAllocation->setDefaultGmm(gmm);
}
return drmAllocation;