summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-03-10 10:34:13 +1000
committerDave Airlie <airlied@redhat.com>2009-03-10 10:34:13 +1000
commit758fcc33c232c32e7b66261fca51de161d1a4800 (patch)
tree9ade16c81451ac6b94da86c5406c59d63bb58988
parent7735e411954fd2cb6105c30ebd5a1b209974ce22 (diff)
r600: enable DRI by default
fallback to shadowfb if DRI fails pre init
-rw-r--r--src/radeon_driver.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index cbe5d592..e8d28f01 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -2147,24 +2147,15 @@ static Bool RADEONPreInitDRI(ScrnInfoPtr pScrn)
return FALSE;
if (info->Chipset == PCI_CHIP_RN50_515E ||
- info->Chipset == PCI_CHIP_RN50_5969 ||
- info->ChipFamily >= CHIP_FAMILY_R600) {
+ info->Chipset == PCI_CHIP_RN50_5969) {
if (xf86ReturnOptValBool(info->Options, OPTION_DRI, FALSE)) {
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
- "Direct rendering for RN50/R600 forced on -- "
+ "Direct rendering for RN50 forced on -- "
"This is NOT officially supported at the hardware level "
"and may cause instability or lockups\n");
} else {
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Direct rendering not officially supported on RN50/R600\n");
-
- if (info->ChipFamily >= CHIP_FAMILY_R600) {
- info->r600_shadow_fb = TRUE;
- xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "using shadow framebuffer\n");
- if (!xf86LoadSubModule(pScrn, "shadow"))
- info->r600_shadow_fb = FALSE;
- }
+ "Direct rendering not officially supported on RN50\n");
return FALSE;
}
}
@@ -2896,6 +2887,16 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
*/
info->directRenderingEnabled = RADEONPreInitDRI(pScrn);
#endif
+ if (!info->directRenderingEnabled) {
+ if (info->ChipFamily >= CHIP_FAMILY_R600) {
+ info->r600_shadow_fb = TRUE;
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "using shadow framebuffer\n");
+ if (!xf86LoadSubModule(pScrn, "shadow"))
+ info->r600_shadow_fb = FALSE;
+ }
+ }
+
if (!RADEONPreInitVRAM(pScrn))
goto fail;