diff options
author | Eric Anholt <eric@anholt.net> | 2008-09-03 16:19:03 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-09-03 16:19:03 +0100 |
commit | 32bb5fc7db14911d0438aea1504e1551b2c9fc25 (patch) | |
tree | ad08bc965448f98de25bc843cb61e7a47a684fd0 | |
parent | 4a5e31138115f435be7f8f5999b1b2329a18d669 (diff) |
Don't set up sarea or drm mappings in DRI2 mode.
-rw-r--r-- | src/i830_dri.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c index 2b4a46f5..6519b489 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -1575,6 +1575,9 @@ i830_update_sarea(ScrnInfoPtr pScrn, drmI830Sarea *sarea) ScreenPtr pScreen = pScrn->pScreen; I830Ptr pI830 = I830PTR(pScrn); + if (pI830->directRenderingType == DRI_DRI2) + return TRUE; + sarea->width = pScreen->width; sarea->height = pScreen->height; sarea->pitch = pScrn->displayWidth; @@ -1672,6 +1675,9 @@ i830_update_dri_mappings(ScrnInfoPtr pScrn, drmI830Sarea *sarea) { I830Ptr pI830 = I830PTR(pScrn); + if (pI830->directRenderingType == DRI_DRI2) + return TRUE; + if (!i830_do_addmap(pScrn, pI830->front_buffer, &sarea->front_handle, &sarea->front_size, &sarea->front_offset)) { xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Disabling DRI.\n"); |