diff --git a/projects/hip/vdi/hip_memory.cpp b/projects/hip/vdi/hip_memory.cpp index 33f3e150d3..07bbb7f71c 100644 --- a/projects/hip/vdi/hip_memory.cpp +++ b/projects/hip/vdi/hip_memory.cpp @@ -1570,7 +1570,7 @@ hipError_t ihipMemcpy3D(const hipMemcpy3DParms* p, pCopy.srcMemoryType = hipMemoryTypeArray; pCopy.srcArray = p->srcArray; // When reffering to array memory, hipPos::x is in elements. - pCopy.srcXInBytes *= hip::getElementSize(p->dstArray->Format); + pCopy.srcXInBytes *= hip::getElementSize(p->srcArray->Format); } if (p->srcPtr.ptr != nullptr) { @@ -1585,7 +1585,7 @@ hipError_t ihipMemcpy3D(const hipMemcpy3DParms* p, pCopy.dstMemoryType = hipMemoryTypeArray; pCopy.dstArray = p->dstArray; // When reffering to array memory, hipPos::x is in elements. - pCopy.srcXInBytes *= hip::getElementSize(p->dstArray->Format); + pCopy.dstXInBytes *= hip::getElementSize(p->dstArray->Format); } if (p->dstPtr.ptr != nullptr) {