display: Flush any pending batches before changing modes.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2010-12-05 09:55:43 +00:00
parent 8450aba6c7
commit 8abade8a21
1 changed files with 4 additions and 0 deletions

View File

@ -442,6 +442,8 @@ intel_crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
crtc->y = y;
crtc->rotation = rotation;
intel_batch_submit(crtc->scrn, TRUE);
mode_to_kmode(crtc->scrn, &intel_crtc->kmode, mode);
ret = intel_crtc_apply(crtc);
if (!ret) {
@ -1349,6 +1351,8 @@ intel_xf86crtc_resize(ScrnInfoPtr scrn, int width, int height)
if (scrn->virtualX == width && scrn->virtualY == height)
return TRUE;
intel_batch_submit(scrn, TRUE);
old_width = scrn->virtualX;
old_height = scrn->virtualY;
old_pitch = scrn->displayWidth;