Only get the VBIOS in non-KMS mode

In KMS mode, the kernel takes care of this for us, so don't bother.
This commit is contained in:
Jesse Barnes 2009-06-29 12:55:43 -07:00
parent 6511c08245
commit 170cae0c8d
1 changed files with 3 additions and 4 deletions

View File

@ -1643,14 +1643,13 @@ I830PreInit(ScrnInfoPtr pScrn, int flags)
if (!i830_detect_chipset(pScrn))
return FALSE;
if (i830_bios_init(pScrn))
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
"VBIOS initialization failed.\n");
if (pI830->use_drm_mode) {
if (!I830DrmModeInit(pScrn))
return FALSE;
} else {
if (i830_bios_init(pScrn))
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
"VBIOS initialization failed.\n");
I830PreInitCrtcConfig(pScrn);
if (!I830AccelMethodInit(pScrn))
return FALSE;