diff options
author | Li Peng <peng.li@intel.com> | 2009-06-16 15:29:57 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-06-16 15:29:57 -0700 |
commit | eb09014ce10428bbcab04e155186382975545f0a (patch) | |
tree | d9f98a5f06d876ef7e9ef8d2c54b08d39a48d2c3 | |
parent | 6c56521bdc0443c0656271caaa795feb13bc1d6b (diff) |
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.
-rw-r--r-- | src/i830_dri.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c index c28f3ab7..d00b42c8 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -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 { |