diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2006-02-15 18:31:22 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2006-02-15 18:31:22 +0000 |
commit | 86fa25369353471dc9a1041df74e66e9029863a7 (patch) | |
tree | 05e149cbfd02f39a7e5f4ecdb06c0effbeea3cc4 /src/i830_dri.c | |
parent | 32f97e02ac3611fd5e3870826dedf701f3b69a51 (diff) |
a little more of a workaround until we unplug the frontbuffer from libdri
Diffstat (limited to 'src/i830_dri.c')
-rw-r--r-- | src/i830_dri.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c index bae05332..7c624573 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -483,16 +483,13 @@ I830DRIScreenInit(ScreenPtr pScreen) pDRIInfo->ddxDriverMajorVersion = I830_MAJOR_VERSION; pDRIInfo->ddxDriverMinorVersion = I830_MINOR_VERSION; pDRIInfo->ddxDriverPatchVersion = I830_PATCHLEVEL; +#if 1 /* temporary until this gets removed from the libdri layer */ pDRIInfo->frameBufferPhysicalAddress = (pointer) pI830->LinearAddr + pI830->FrontBuffer.Start; -#if 0 pDRIInfo->frameBufferSize = ROUND_TO_PAGE(pScrn->displayWidth * pScrn->virtualY * pI830->cpp); -#else - /* For rotation we map a 0 length framebuffer as we remap ourselves later */ - pDRIInfo->frameBufferSize = 4096; -#endif pDRIInfo->frameBufferStride = pScrn->displayWidth * pI830->cpp; +#endif pDRIInfo->ddxDrawableTableEntry = I830_MAX_DRAWABLES; if (SAREA_MAX_DRAWABLES < I830_MAX_DRAWABLES) @@ -929,13 +926,10 @@ I830DRIFinishScreenInit(ScreenPtr pScreen) /* Have shadow run only while there is 3d active. */ -#if 0 - if (pI830->allowPageFlip && pI830->drmMinor >= 1) { - shadowSetup(pScreen); + if (pI830->allowPageFlip && pI830->drmMinor >= 1 && pI830->shadowReq.minorversion >= 1) { shadowAdd(pScreen, 0, I830DRIShadowUpdate, 0, 0, 0); } else -#endif pI830->allowPageFlip = 0; @@ -1225,7 +1219,6 @@ I830EmitInvarientState(ScrnInfoPtr pScrn) */ -#if 0 /* This should be done *before* XAA syncs, * Otherwise will have to sync again??? */ @@ -1234,7 +1227,7 @@ I830DRIShadowUpdate (ScreenPtr pScreen, shadowBufPtr pBuf) { ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; I830Ptr pI830 = I830PTR(pScrn); - RegionPtr damage = &pBuf->damage; + RegionPtr damage = (RegionPtr) shadowBuf(pBuf); int i, num = REGION_NUM_RECTS(damage); BoxPtr pbox = REGION_RECTS(damage); drmI830Sarea *pSAREAPriv = DRIGetSAREAPrivate(pScreen); @@ -1270,7 +1263,6 @@ I830DRIShadowUpdate (ScreenPtr pScreen, shadowBufPtr pBuf) ADVANCE_LP_RING(); } } -#endif static void I830EnablePageFlip(ScreenPtr pScreen) |