From 74571363539426abeb0a1af11f3bb545d91ed6c2 Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Wed, 8 Oct 2008 15:36:10 +0800 Subject: [PATCH] Put forware VBIOS data parsing i830_bios_init() is called too late after output init, which makes bios data mostly useless, and caused all TV init fail as tv_present flag is not set. --- src/i830_driver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/i830_driver.c b/src/i830_driver.c index 933c8b87..c1d61f4f 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -1895,6 +1895,10 @@ 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"); + I830PreInitCrtcConfig(pScrn); if (pI830->use_drm_mode) { @@ -1914,10 +1918,6 @@ I830PreInit(ScrnInfoPtr pScrn, int flags) return FALSE; } - if (i830_bios_init(pScrn)) - xf86DrvMsg(pScrn->scrnIndex, X_WARNING, - "VBIOS initialization failed.\n"); - /* * XXX If we knew the pre-initialised GTT format for certain, we could * probably figure out the physical address even in the StolenOnly case.