Use MemoryProperties to setup cache policy for images

Related-To: NEO-2535

Change-Id: Ieb311cef1560d09c099b713d2cc81afb886cfc56
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-04-05 10:42:48 +02:00
committed by sys_ocldev
parent bc76a6a61f
commit fc86445079
7 changed files with 24 additions and 12 deletions

View File

@@ -93,7 +93,7 @@ Image *D3DSurface::create(Context *context, cl_dx9_surface_info_khr *surfaceInfo
imgDesc.image_height /= 2;
}
AllocationProperties allocProperties = MemObjHelper::getAllocationProperties(imgInfo, true);
AllocationProperties allocProperties = MemObjHelper::getAllocationProperties(imgInfo, true, flags);
allocProperties.allocationType = GraphicsAllocation::AllocationType::SHARED_RESOURCE_COPY;
alloc = context->getMemoryManager()->allocateGraphicsMemoryInPreferredPool(allocProperties, nullptr);