Comment 4 for bug 390917

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Err this one might work better. Both the video and DRI2 swapbuffers code share this path.

diff --git a/src/i830_video.c b/src/i830_video.c
index 1ff80a0..962d1f7 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -1734,6 +1734,10 @@ i830_covering_crtc (ScrnInfoPtr pScrn,
     for (c = 0; c < xf86_config->num_crtc; c++)
     {
        crtc = xf86_config->crtc[c];
+
+ if (!crtc->enabled)
+ continue;
+
        i830_crtc_box (crtc, &crtc_box);
        i830_box_intersect (&cover_box, &crtc_box, box);
        coverage = i830_box_area (&cover_box);