mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
sys_ocldev
parent
bc76a6a61f
commit
fc86445079
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user