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.
This commit is contained in:
Eric Anholt 2009-02-21 20:36:58 -08:00
parent 170f00e161
commit f4e2f522a5
1 changed files with 3 additions and 0 deletions

View File

@ -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 */