mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Unify mapAllocation and hostPtrAllocation to transferAllocation
Change-Id: I875d6886ce3b0866da7679925ba973d2d16a1141 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
224740207f
commit
6059e77fb4
@@ -92,8 +92,7 @@ cl_int CommandQueueHw<GfxFamily>::enqueueReadBuffer(
|
||||
dc.srcMemObj = buffer;
|
||||
dc.srcOffset = {offset, 0, 0};
|
||||
dc.size = {size, 0, 0};
|
||||
dc.mapAllocation = mapAllocation;
|
||||
dc.hostPtrAllocation = hostPtrSurf.getAllocation();
|
||||
dc.transferAllocation = mapAllocation ? mapAllocation : hostPtrSurf.getAllocation();
|
||||
builder.buildDispatchInfos(dispatchInfo, dc);
|
||||
|
||||
if (context->isProvidingPerformanceHints()) {
|
||||
|
||||
Reference in New Issue
Block a user