Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-drm_gralloc: 提交

external/drm_gralloc


Commit MetaInfo

修订版7161569c26f65d01104a6ce29f47f2f10c7c4162 (tree)
时间2014-05-19 12:51:21
作者pstglia <pstglia@gmai...>
CommiterChih-Wei Huang

Log Message

radeon: fix tiling config for family older than 06xx

更改概述

差异

--- a/gralloc_drm_radeon.c
+++ b/gralloc_drm_radeon.c
@@ -490,10 +490,15 @@ static int radeon_probe(struct radeon_info *info)
490490 return -EINVAL;
491491 }
492492
493- err = radeon_init_tile_config(info);
494- if (err) {
495- ALOGE("failed to get tiling config");
496- return err;
493+ if (info->chip_family >= CHIP_FAMILY_R600) {
494+ err = radeon_init_tile_config(info);
495+ if (err) {
496+ ALOGE("failed to get tiling config");
497+ return err;
498+ }
499+ } else {
500+ /* No tiling config for family older than 06xx */
501+ info->have_tiling_info = 0;
497502 }
498503
499504 /* CPU cannot handle tiled buffers (need scratch buffers) */
Show on old repository browser