mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
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:
committed by
sys_ocldev
parent
3aeaaf6eb3
commit
caedea28f8
@@ -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()) {
|
||||
|
||||
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user