summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2015-01-14 13:38:44 +0800
committerYang Rong <rong.r.yang@intel.com>2015-01-29 16:14:06 +0800
commit2e86b9d47b646fcd1c2b045ddd056bf8cc841f61 (patch)
tree10069894adda43ecceff60f8e48a927da86fa2d8 /src
parent49c7ac32307460f6a00480541f7e2c11f1613b36 (diff)
SKL: Use TILE_Y as default TILING mode in skl.
3D Image can't use TILE_X in skl so change to default TILING MODE to TILE_Y. Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_mem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cl_mem.c b/src/cl_mem.c
index 36ef2ce2..2ec89a43 100644
--- a/src/cl_mem.c
+++ b/src/cl_mem.c
@@ -663,7 +663,8 @@ cl_image_tiling_t cl_get_default_tiling(cl_driver drv)
if (!initialized) {
// FIXME, need to find out the performance diff's root cause on BDW.
- if(cl_driver_get_ver(drv) == 8)
+ // SKL's 3D Image can't use TILE_X, so use TILE_Y as default
+ if(cl_driver_get_ver(drv) == 8 || cl_driver_get_ver(drv) == 9)
tiling = CL_TILE_Y;
char *tilingStr = getenv("OCL_TILING");
if (tilingStr != NULL) {