From fcf0cca9c0ab0f692b222f619aee8f1cdad3b519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Tue, 20 Sep 2011 12:34:05 +0200 Subject: KMS Color Tiling requires xserver which supports EXA_MIXED_PIXMAPS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michel Dänzer --- src/radeon_kms.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/radeon_kms.c b/src/radeon_kms.c index e163e994..ccf11524 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -480,6 +480,8 @@ static Bool radeon_open_drm_master(ScrnInfoPtr pScrn) return TRUE; } +#ifdef EXA_MIXED_PIXMAPS + static Bool r600_get_tile_config(ScrnInfoPtr pScrn) { RADEONInfoPtr info = RADEONPTR(pScrn); @@ -591,13 +593,14 @@ static Bool r600_get_tile_config(ScrnInfoPtr pScrn) return TRUE; } +#endif /* EXA_MIXED_PIXMAPS */ + Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags) { RADEONInfoPtr info; RADEONEntPtr pRADEONEnt; DevUnion* pPriv; Gamma zeros = { 0.0, 0.0, 0.0 }; - Bool colorTilingDefault; uint32_t tiling = 0; int cpp; @@ -671,9 +674,10 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags) if (!RADEONPreInitAccel_KMS(pScrn)) goto fail; +#ifdef EXA_MIXED_PIXMAPS /* don't enable tiling if accel is not enabled */ if (!info->r600_shadow_fb) { - colorTilingDefault = info->ChipFamily >= CHIP_FAMILY_R300 && + Bool colorTilingDefault = info->ChipFamily >= CHIP_FAMILY_R300 && info->ChipFamily <= CHIP_FAMILY_CAYMAN; if (info->ChipFamily >= CHIP_FAMILY_R600) { @@ -697,6 +701,10 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags) info->allowColorTiling = xf86ReturnOptValBool(info->Options, OPTION_COLOR_TILING, colorTilingDefault); } else +#else + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "KMS Color Tiling requires xserver which supports EXA_MIXED_PIXMAPS\n"); +#endif info->allowColorTiling = FALSE; xf86DrvMsg(pScrn->scrnIndex, X_INFO, -- cgit v1.2.3