From cbe109d689df52799f4789f912cfd24f07476fe5 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 2 Mar 2015 19:15:46 -0500
Subject: [PATCH] P4 to Git Change 1126564 by gandryey@gera-dev-w7 on
2015/03/02 18:12:07
ECR #304775 - Use the tiling index from the parent object instead of forcing it to 0.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#208 edit
[ROCm/clr commit: fb80e6657b33d390cdb2884e174bf9335d0cd597]
---
projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp b/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp
index 316ea582aa..c182948c04 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp
@@ -1001,12 +1001,12 @@ Resource::create(MemoryType memType, CreateParams* params, bool heap)
hwState_[8] = GetHSAILImageFormatType(cal()->format_);
hwState_[9] = GetHSAILImageOrderType(cal()->channelOrder_, cal()->format_);
hwState_[10] = static_cast(cal()->width_);
- // Workaround for depth view, change tileIndex to 0 for depth view
+ // Workaround for depth view, change tileIndex to the parent for depth view
if ((memoryType() == ImageView) &&
(viewChannelOrder == GSL_CHANNEL_ORDER_REPLICATE_R)) {
if ((hwState_[3] & 0x1f00000) == 0xe00000) {
- hwState_[3] = hwState_[3] & 0xfe0fffff ;
- }
+ hwState_[3] = (hwState_[3] & 0xfe0fffff) | viewOwner_->hwState_[3];
+ }
}
hwState_[11] = 0; // one extra reserved field in the argument
}