[Beignet] [PATCH 3/8] SKL: Use TILE_Y as default TILING mode in skl.
Yang Rong
rong.r.yang at intel.com
Thu Jan 29 00:16:18 PST 2015
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 at intel.com>
---
src/cl_mem.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/cl_mem.c b/src/cl_mem.c
index 36ef2ce..2ec89a4 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) {
--
2.1.0
More information about the Beignet
mailing list