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);
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 >num_crtc; c++) >crtc[c] ;
i830_crtc_ box (crtc, &crtc_box);
i830_box_ intersect (&cover_box, &crtc_box, box);
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-
{
crtc = xf86_config-
+
+ if (!crtc->enabled)
+ continue;
+
coverage = i830_box_area (&cover_box);