[Intel-gfx] [PATCH 6/6] Pass NULL for framebuffer to fbScreenInit

Keith Packard keithp at keithp.com
Wed Jul 8 22:28:23 CEST 2009


The frame buffer address is not set until it is mapped to the server address
space, which happens after fb is initialized. Just pass NULL instead of
computing garbage.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 src/i830_driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/i830_driver.c b/src/i830_driver.c
index 72f091f..7c6e11f 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -2811,7 +2811,7 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
 	pScrn->displayWidth = pScrn->virtualX;
 
    DPRINTF(PFX, "assert( if(!fbScreenInit(pScreen, ...) )\n");
-   if (!fbScreenInit(pScreen, pI830->FbBase + pScrn->fbOffset, 
+   if (!fbScreenInit(pScreen, NULL,
                      pScrn->virtualX, pScrn->virtualY,
 		     pScrn->xDpi, pScrn->yDpi,
 		     pScrn->displayWidth, pScrn->bitsPerPixel))
-- 
1.6.3.3




More information about the Intel-gfx mailing list