SWDEV-434298 - Add destination offset
The end pointer in copy buffer requires destination offset Change-Id: I01f2967144f741761fd2ce3244fd8d04564d986f
Este cometimento está contido em:
@@ -2314,8 +2314,8 @@ bool KernelBlitManager::copyBuffer(device::Memory& srcMemory, device::Memory& ds
|
||||
setArgument(kernels_[kBlitType], 5, sizeof(remainder), &remainder);
|
||||
setArgument(kernels_[kBlitType], 6, sizeof(aligned_size), &aligned_size);
|
||||
|
||||
// End pointer is the aligned copy size
|
||||
uint64_t end_ptr = dstMemory.virtualAddress() + sizeIn[0] - remainder;
|
||||
// End pointer is the aligned copy size and destination offset
|
||||
uint64_t end_ptr = dstMemory.virtualAddress() + dstOffset + sizeIn[0] - remainder;
|
||||
setArgument(kernels_[kBlitType], 7, sizeof(end_ptr), &end_ptr);
|
||||
|
||||
uint32_t next_chunk = globalWorkSize;
|
||||
|
||||
@@ -2335,8 +2335,9 @@ bool KernelBlitManager::copyBuffer(device::Memory& srcMemory, device::Memory& ds
|
||||
setArgument(kernels_[kBlitType], 5, sizeof(remainder), &remainder);
|
||||
setArgument(kernels_[kBlitType], 6, sizeof(aligned_size), &aligned_size);
|
||||
|
||||
// End pointer is the aligned copy size
|
||||
uint64_t end_ptr = dstMemory.virtualAddress() + sizeIn[0] - remainder;
|
||||
// End pointer is the aligned copy size and destination offset
|
||||
uint64_t end_ptr = dstMemory.virtualAddress() + dstOffset + sizeIn[0] - remainder;
|
||||
|
||||
setArgument(kernels_[kBlitType], 7, sizeof(end_ptr), &end_ptr);
|
||||
|
||||
uint32_t next_chunk = globalWorkSize;
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador