SWDEV-388661 - Fixed regression in hipMemCpyParam3D when offset is applied

Change-Id: I31273d643aac05f394f505235734c7f098497051
这个提交包含在:
Ioannis Assiouras
2023-03-17 23:04:08 +00:00
提交者 Maneesh Gupta
父节点 17553de9b7
当前提交 9c04e21b68
修改 2 个文件,包含 0 行新增4 行删除
-2
查看文件
@@ -2095,7 +2095,6 @@ hipError_t ihipGetMemcpyParam3DCommand(amd::Command*& command, const HIP_MEMCPY3
if (srcMemoryType == hipMemoryTypeDevice) {
const_cast<HIP_MEMCPY3D*>(pCopy)->srcDevice = const_cast<void*>(pCopy->srcHost);
const_cast<HIP_MEMCPY3D*>(pCopy)->srcXInBytes += offset;
}
}
offset = 0;
@@ -2105,7 +2104,6 @@ hipError_t ihipGetMemcpyParam3DCommand(amd::Command*& command, const HIP_MEMCPY3
if (dstMemoryType == hipMemoryTypeDevice) {
const_cast<HIP_MEMCPY3D*>(pCopy)->dstDevice = const_cast<void*>(pCopy->dstHost);
const_cast<HIP_MEMCPY3D*>(pCopy)->dstXInBytes += offset;
}
}