don't wait for vblank on rotated displays

We may hang or wait for the wrong line if the display is rotated, so just skip
the wait in that case.

Fixes fdo bug #22196.
This commit is contained in:
Li Peng 2009-06-16 15:29:57 -07:00 committed by Jesse Barnes
parent 6c56521bdc
commit eb09014ce1
1 changed files with 2 additions and 1 deletions

View File

@ -309,7 +309,8 @@ I830DRI2CopyRegion(DrawablePtr pDraw, RegionPtr pRegion,
box = REGION_EXTENTS(unused, pGC->pCompositeClip);
crtc = i830_covering_crtc(pScrn, box, NULL, &crtcbox);
if (crtc != NULL) {
/* Make sure the CRTC is valid and this is the real front buffer */
if (crtc != NULL && !crtc->rotatedData) {
if (pI830->use_drm_mode)
pipe = drmmode_get_pipe_from_crtc_id(pI830->bufmgr, crtc);
else {