Dont create hostptr allocation for blit calls if already exists

Change-Id: If3d9f50189dd31e24796f1f56ce400360c461877
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-10-23 11:56:55 +02:00
committed by sys_ocldev
parent 3aeaaf6eb3
commit caedea28f8
5 changed files with 20 additions and 2 deletions

View File

@@ -93,6 +93,7 @@ cl_int CommandQueueHw<GfxFamily>::enqueueReadBuffer(
dc.srcOffset = {offset, 0, 0};
dc.size = {size, 0, 0};
dc.mapAllocation = mapAllocation;
dc.hostPtrAllocation = hostPtrSurf.getAllocation();
builder.buildDispatchInfos(dispatchInfo, dc);
if (context->isProvidingPerformanceHints()) {

View File

@@ -89,6 +89,7 @@ cl_int CommandQueueHw<GfxFamily>::enqueueWriteBuffer(
dc.dstOffset = {offset, 0, 0};
dc.size = {size, 0, 0};
dc.mapAllocation = mapAllocation;
dc.hostPtrAllocation = hostPtrSurf.getAllocation();
builder.buildDispatchInfos(dispatchInfo, dc);
enqueueHandler<CL_COMMAND_WRITE_BUFFER>(