From 915c3da749759323bc5ff0111bb0701a05a46d84 Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 4 Jan 2019 19:44:36 -0500
Subject: [PATCH] P4 to Git Change 1726489 by kjayapra@3_HIPWS_hmc2Dfix on
2019/01/04 19:36:57
SWDEV-145570 - Changing the SRC and DST pointer in hsa_amd_memory_async_copy_rect.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#28 edit
---
rocclr/runtime/device/rocm/rocblit.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/rocm/rocblit.cpp b/rocclr/runtime/device/rocm/rocblit.cpp
index 88e723dc57..d369166d51 100644
--- a/rocclr/runtime/device/rocm/rocblit.cpp
+++ b/rocclr/runtime/device/rocm/rocblit.cpp
@@ -403,7 +403,7 @@ bool DmaBlitManager::copyBufferRect(device::Memory& srcMemory, device::Memory& d
// Copy memory line by line
hsa_status_t status =
- hsa_amd_memory_async_copy_rect(&srcMem, &offset, &dstMem, &offset, &dim, agent,
+ hsa_amd_memory_async_copy_rect(&dstMem, &offset, &srcMem, &offset, &dim, agent,
direction, 0, nullptr, completion_signal_);
if (status != HSA_STATUS_SUCCESS) {
LogPrintfError("DMA buffer failed with code %d", status);