From: Keith P. <ke...@ke...> - 2009-07-08 20:28:44
|
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 <ke...@ke...> --- 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 |