From e20b08525a64888287ec4a369d8f7dbde95c655d Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 28 May 2008 14:43:47 -0400 Subject: ATOM: fail of we are not able to get a bios image --- src/radeon_driver.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/radeon_driver.c') diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 91421b5f..5ea7a499 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -2483,9 +2483,17 @@ static Bool RADEONPreInitXv(ScrnInfoPtr pScrn) return TRUE; } -static void RADEONPreInitBIOS(ScrnInfoPtr pScrn, xf86Int10InfoPtr pInt10) +static Bool +RADEONPreInitBIOS(ScrnInfoPtr pScrn, xf86Int10InfoPtr pInt10) { - RADEONGetBIOSInfo(pScrn, pInt10); + RADEONInfoPtr info = RADEONPTR(pScrn); + + if (!RADEONGetBIOSInfo(pScrn, pInt10)) { + /* Avivo chips require bios for atom */ + if (IS_AVIVO_VARIANT) + return FALSE; + } + return TRUE; } static void RADEONFixZaphodOutputs(ScrnInfoPtr pScrn) @@ -2767,7 +2775,8 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags) RADEONPostInt10Check(pScrn, int10_save); - RADEONPreInitBIOS(pScrn, pInt10); + if (!RADEONPreInitBIOS(pScrn, pInt10)) + goto fail; #ifdef XF86DRI /* PreInit DRI first of all since we need that for getting a proper -- cgit v1.2.3