summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-02-21 20:36:58 -0800
committerEric Anholt <eric@anholt.net>2009-02-24 14:07:08 -0800
commitf4e2f522a5c5b03ea530b9eb67e9d1a9a96274ce (patch)
tree688b2438167c910d2096607307b21acf290f288b
parent170f00e161931fdaa8c2812fc710649e1d6d977a (diff)
Don't do AdjustFrame in KMS mode.
This was hit by xv86vm's SwitchMode path, and for that the CRTC offsets get set at mode setting time anyway.
-rw-r--r--src/i830_driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 0a8a9c6b..2461e8ab 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -3488,6 +3488,9 @@ i830AdjustFrame(int scrnIndex, int x, int y, int flags)
DPRINTF(PFX, "i830AdjustFrame: y = %d (+ %d), x = %d (+ %d)\n",
x, pI830->xoffset, y, pI830->yoffset);
+ if (pI830->use_drm_mode)
+ return;
+
if (crtc && crtc->enabled)
{
/* Sync the engine before adjust frame */