SWDEV-434298 - Add destination offset
The end pointer in copy buffer requires destination offset
Change-Id: I01f2967144f741761fd2ce3244fd8d04564d986f
[ROCm/clr commit: 44761fe89b]
이 커밋은 다음에 포함됨:
1 부모
66b4a403a6
커밋
d60fabacbe
2 파일이 변경됨
+5
-4
검색과 일치하는 파일 없음
@@ -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;
|
||||
|
||||
새 이슈에서 참조
사용자 차단