From d4c4f3f2a253d26feec700f0b87aaf98d107e1dc Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 27 Feb 2015 17:23:50 -0500
Subject: [PATCH] P4 to Git Change 1125977 by gandryey@gera-dev-w7 on
2015/02/27 17:13:17
ECR #304775 - Enable TC compatible htile mode by default.
- The feature is available on VI+, but interop just requires different tiling mode.
- In the future we may need another way to control this feature for interop.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#108 edit
[ROCm/clr commit: ac68112eaff65df8e9a4439c94b6ce74f4344ad6]
---
.../clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp | 5 +++++
1 file changed, 5 insertions(+)
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 22f582c89e..eaaf88937e 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
@@ -297,6 +297,11 @@ CALGSLDevice::open(uint32 gpuIndex, bool enableHighPerformanceState, bool report
m_dcfg.DropFlush.hasValue = true;
m_dcfg.DropFlush.value = (GPU_IFH_MODE == 1);
+ // Enable TC compatible htile mode. It's HW feature for VI+ and controlled in HWL.
+ // Depth interop doesn't support TC compatible htile mode, but OCL needs correct tiling setup.
+ m_dcfg.bEnableTCCompatibleHtile.hasValue = true;
+ m_dcfg.bEnableTCCompatibleHtile.value = true;
+
int32 asic_id = 0;
if (!SetupAdapter(asic_id))
{