mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Refactor Graphics Allocation paths for Images
Change-Id: Ifa3084b18cac95289bbceeaf3669dd31567fbd3e
This commit is contained in:
committed by
sys_ocldev
parent
3dca095ccf
commit
f6790c42cf
@@ -88,11 +88,11 @@ Image *D3DSurface::create(Context *context, cl_dx9_surface_info_khr *surfaceInfo
|
||||
imgDesc.image_width /= 2;
|
||||
imgDesc.image_height /= 2;
|
||||
}
|
||||
Gmm *gmm = new Gmm(imgInfo);
|
||||
|
||||
alloc = context->getMemoryManager()->allocateGraphicsMemoryForImage(imgInfo, nullptr);
|
||||
|
||||
imgDesc.image_row_pitch = imgInfo.rowPitch;
|
||||
imgDesc.image_slice_pitch = imgInfo.slicePitch;
|
||||
|
||||
alloc = context->getMemoryManager()->allocateGraphicsMemoryForImage(imgInfo, gmm);
|
||||
}
|
||||
DEBUG_BREAK_IF(!alloc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user