diff options
author | Dave Airlie <airlied@linux.ie> | 2006-12-17 19:59:19 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-12-17 19:59:19 +1100 |
commit | 555e0f988c571aa47bc62ec6d9612a71f1a1f59b (patch) | |
tree | 3439573149948d5dc7cc54c5ade29766c39fb398 /src/radeon_driver.c | |
parent | 3e2c72d7ac80ed874bcf2887a5253dac1c9bb02c (diff) |
add randr pre init
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r-- | src/radeon_driver.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index f06edcc9..b8810b4b 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -3258,6 +3258,20 @@ _X_EXPORT Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags) if (!RADEONPreInitXv(pScrn)) goto fail; + + if (!xf86RandR12PreInit (pScrn)) + { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "RandR initialization failure\n"); + PreInitCleanup(pScrn); + return FALSE; + } + + if (pScrn->modes == NULL) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "No modes.\n"); + PreInitCleanup(pScrn); + return FALSE; + } + /* Free the video bios (if applicable) */ if (info->VBIOS) { xfree(info->VBIOS); |