summaryrefslogtreecommitdiff
path: root/src/i830_dga.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i830_dga.c')
-rw-r--r--src/i830_dga.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/i830_dga.c b/src/i830_dga.c
index 8bd570c6..b1416598 100644
--- a/src/i830_dga.c
+++ b/src/i830_dga.c
@@ -281,7 +281,12 @@ I830_OpenFramebuffer(ScrnInfoPtr pScrn,
*name = NULL; /* no special device */
*mem = (unsigned char *)(pI830->LinearAddr + pScrn->fbOffset);
- *size = pI830->FrontBuffer.Size;
+ if (pI830->init == 0)
+ *size = pI830->FrontBuffer.Size;
+ else {
+ I830Ptr pI8301 = I830PTR(pI830->entityPrivate->pScrn_1);
+ *size = pI8301->FrontBuffer2.Size;
+ }
*offset = 0;
*flags = DGA_NEED_ROOT;