From 170cae0c8d58fc141de1d8a2f17a4328d39c1263 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Mon, 29 Jun 2009 12:55:43 -0700 Subject: [PATCH] Only get the VBIOS in non-KMS mode In KMS mode, the kernel takes care of this for us, so don't bother. --- src/i830_driver.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/i830_driver.c b/src/i830_driver.c index 23690cf6..bd7a32c2 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -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;