From 1dcd9b1f75ba2307beb42556aa7f2f945171d5fb Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 24 Aug 2006 19:42:26 -0400 Subject: Disable DRI on RN50 in a more pleasant way. Rather than publish a non-existant driver name for RN50, just don't bother initializing it in the first place. --- src/radeon_dri.c | 5 ----- src/radeon_driver.c | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/radeon_dri.c b/src/radeon_dri.c index b1dae426..944fddd7 100644 --- a/src/radeon_dri.c +++ b/src/radeon_dri.c @@ -1380,11 +1380,6 @@ Bool RADEONDRIScreenInit(ScreenPtr pScreen) } else if ( info->ChipFamily >= CHIP_FAMILY_R200 ) pDRIInfo->clientDriverName = R200_DRIVER_NAME; - else if ((info->Chipset == PCI_CHIP_RN50_515E) || - (info->Chipset == PCI_CHIP_RN50_5969)) { - /* RN50 doesn't support 3D, so setting clientDriverName to an invalid name "RN50" */ - pDRIInfo->clientDriverName = "RN50"; - } else pDRIInfo->clientDriverName = RADEON_DRIVER_NAME; diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 53a3d4a0..97019675 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -4468,6 +4468,13 @@ static Bool RADEONPreInitDRI(ScrnInfoPtr pScrn) if (info->IsSecondary) return FALSE; + if (info->Chipset == PCI_CHIP_RN50_515E || + info->Chipset == PCI_CHIP_RN50_5969) { + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "Direct rendering not supported on RN50\n"); + return FALSE; + } + if (xf86ReturnOptValBool(info->Options, OPTION_NOACCEL, FALSE)) { xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "[dri] Acceleration disabled, not initializing the DRI\n"); -- cgit v1.2.3