mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
Simplify memory manager interfaces.
- Remove one function that routes to another function. Change-Id: I44c17bf51abaf3aebf0692086de0f38e0693ab59
This commit is contained in:
committed by
sys_ocldev
parent
26ffab8a0c
commit
815151cb94
@@ -91,7 +91,7 @@ Image *D3DSurface::create(Context *context, cl_dx9_surface_info_khr *surfaceInfo
|
||||
GraphicsAllocation *alloc = nullptr;
|
||||
if (surfaceInfo->shared_handle) {
|
||||
isSharedResource = true;
|
||||
alloc = context->getMemoryManager()->createGraphicsAllocationFromSharedHandle((osHandle)((UINT_PTR)surfaceInfo->shared_handle), false);
|
||||
alloc = context->getMemoryManager()->createGraphicsAllocationFromSharedHandle((osHandle)((UINT_PTR)surfaceInfo->shared_handle), false, false);
|
||||
updateImgInfo(alloc->gmm, imgInfo, imgDesc, oclPlane, 0u);
|
||||
} else {
|
||||
lockable = !(surfaceDesc.Usage & D3DResourceFlags::USAGE_RENDERTARGET) || oclPlane != OCLPlane::NO_PLANE;
|
||||
|
||||
Reference in New Issue
Block a user