From f866a3d658ef5f00464ab71cda3aa1a5c0cb0fdf Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 27 May 2016 16:23:49 -0400
Subject: [PATCH] P4 to Git Change 1273995 by gandryey@gera-ocl on 2016/05/27
16:13:11
SWDEV-79445 - Fix a TC regression after CL#1273440
- Add the both conditions to the restrictions: sorce and destination alignment
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#167 edit
[ROCm/clr commit: 23ec683890aee7acacc2cc748564e1c87e41e22b]
---
.../rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp | 6 ++++--
1 file changed, 4 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 155b687f52..f4617d10ea 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
@@ -1210,7 +1210,8 @@ 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))
+ (srcOffset[0] % 4 == 0) &&
+ (destOffset[0] % 4 == 0))
{
// The sDMA T2L cases we need to avoid are when the tiled_x
// is not a multiple of BytesPerPixel.
@@ -1231,7 +1232,8 @@ 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))
+ (destOffset[0] % 4 == 0) &&
+ (srcOffset[0] % 4 == 0))
{
// The sDMA L2T cases we need to avoid are when the tiled_x
// is not a multiple of BytesPerPixel.