Move createAllocationForHostPtr method to command stream receiver

Remove not needed includes from command_queue.h

Change-Id: I45963bf005471bd7716d55471474299a15e27b62
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2018-10-29 10:38:53 +01:00
committed by sys_ocldev
parent 1dc3a94ac8
commit ead2e2ea6d
50 changed files with 184 additions and 289 deletions

View File

@@ -89,7 +89,7 @@ cl_int CommandQueueHw<GfxFamily>::enqueueWriteBuffer(
Surface *surfaces[] = {&bufferSurf, &hostPtrSurf};
if (size != 0) {
bool status = createAllocationForHostSurface(hostPtrSurf);
bool status = getDevice().getCommandStreamReceiver().createAllocationForHostSurface(hostPtrSurf, getDevice());
if (!status) {
return CL_OUT_OF_RESOURCES;
}