summaryrefslogtreecommitdiff
path: root/src/radeon_kms.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-05-16 20:11:17 +0000
committerAlex Deucher <alexdeucher@gmail.com>2010-05-18 21:39:28 -0400
commit428125c095b18c2a2864c1aef24ac0f384b6be54 (patch)
treefb6bda378a4a76eb7830155bb2ec75ebf9ff3682 /src/radeon_kms.c
parent6712ce4f4715c8ce7c2fcddb52ca9b103bdd634c (diff)
r3xx-r5xx: enable color tiling by default on KMS
Signed-off-by: Marek Olšák <maraeo@gmail.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r--src/radeon_kms.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 1ba320be..e4c1c0b1 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -424,6 +424,7 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
RADEONEntPtr pRADEONEnt;
DevUnion* pPriv;
Gamma zeros = { 0.0, 0.0, 0.0 };
+ Bool colorTilingDefault;
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG,
"RADEONPreInit_KMS\n");
@@ -480,8 +481,11 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
if (!radeon_alloc_dri(pScrn))
return FALSE;
+ colorTilingDefault = info->ChipFamily >= CHIP_FAMILY_R300 &&
+ info->ChipFamily <= CHIP_FAMILY_RS740;
+
info->allowColorTiling = xf86ReturnOptValBool(info->Options,
- OPTION_COLOR_TILING, FALSE);
+ OPTION_COLOR_TILING, colorTilingDefault);
if (info->ChipFamily >= CHIP_FAMILY_R600) {
xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Color tiling is not yet supported on R600/R700\n");
info->allowColorTiling = FALSE;