From 5000c4feb00a5748df6df48ffcfac3418f5a2b98 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 29 Sep 2015 11:28:33 -0400
Subject: [PATCH] P4 to Git Change 1195487 by gandryey@gera-dev-w7 on
2015/09/29 11:12:06
SWDEV-77545 - Relax Cypress restriction on SDMA copy
- The original check for offest was wrong. We have to check the linear buffer alignment
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#145 edit
[ROCm/clr commit: 1eab8317766c6d7a2a97750f8d0b1e5db9d5f9f4]
---
.../clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp
index bb5af85792..2e671ec759 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp
@@ -1382,7 +1382,7 @@ CALGSLDevice::GetCopyType(
// Make sure linear pitch in bytes is 4 bytes aligned
if (((linearBytePitch % 4) == 0) &&
// another DRM restriciton... SI has 4 pixels
- (srcOffset[0] % 4 == 0))
+ (destOffset[0] % 4 == 0))
{
type = USE_DRMDMA_T2L;
}
@@ -1401,7 +1401,7 @@ CALGSLDevice::GetCopyType(
// Make sure linear pitch in bytes is 4 bytes aligned
if (((linearBytePitch % 4) == 0) &&
// another DRM restriciton... SI has 4 pixels
- (destOffset[0] % 4 == 0))
+ (srcOffset[0] % 4 == 0))
{
type = USE_DRMDMA_L2T;
}