summaryrefslogtreecommitdiff
path: root/src/i830_dga.c
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-09-15 16:34:01 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-09-15 16:34:01 +0000
commit26f276bb2fe9d2a38b52968b0604b1b184e95329 (patch)
treea0cb4a8a3b30123b2d20fd2cb18aa6bfb37eeb9c /src/i830_dga.c
parent4db974c9e502fc406973b1d426aeec5a69386932 (diff)
Pull XORG-6_8_0 to CYGWIN branchCYGWIN-6_8_1-MERGECYGWIN-6_8_0-MERGE
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;