summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpstglia <pstglia@gmail.com>2014-05-19 11:51:21 +0800
committerChih-Wei Huang <cwhuang@linux.org.tw>2014-05-19 11:51:21 +0800
commit7161569c26f65d01104a6ce29f47f2f10c7c4162 (patch)
tree18eda6cdd6a7d8947ad54a220ae052dc821829f0
parenta8eb27db697d3be48936ccb0ace9fb2a7a7e3109 (diff)
downloadexternal_drm_gralloc-7161569c26f65d01104a6ce29f47f2f10c7c4162.zip
external_drm_gralloc-7161569c26f65d01104a6ce29f47f2f10c7c4162.tar.gz
external_drm_gralloc-7161569c26f65d01104a6ce29f47f2f10c7c4162.tar.bz2
radeon: fix tiling config for family older than 06xx
-rw-r--r--gralloc_drm_radeon.c13
1 files 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) */