From 7161569c26f65d01104a6ce29f47f2f10c7c4162 Mon Sep 17 00:00:00 2001 From: pstglia Date: Mon, 19 May 2014 11:51:21 +0800 Subject: radeon: fix tiling config for family older than 06xx --- gralloc_drm_radeon.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gralloc_drm_radeon.c b/gralloc_drm_radeon.c index 5c77bc8..be2ea9b 100644 --- a/gralloc_drm_radeon.c +++ b/gralloc_drm_radeon.c @@ -490,10 +490,15 @@ static int radeon_probe(struct radeon_info *info) return -EINVAL; } - err = radeon_init_tile_config(info); - if (err) { - ALOGE("failed to get tiling config"); - return err; + if (info->chip_family >= CHIP_FAMILY_R600) { + err = radeon_init_tile_config(info); + if (err) { + ALOGE("failed to get tiling config"); + return err; + } + } else { + /* No tiling config for family older than 06xx */ + info->have_tiling_info = 0; } /* CPU cannot handle tiled buffers (need scratch buffers) */ -- cgit v1.1