sna: Remove incorrect assertion for mode restoration

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-05-22 09:43:51 +01:00
parent 49b7742999
commit b17c44c8d2
1 changed files with 1 additions and 2 deletions

View File

@ -683,8 +683,7 @@ sna_crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
if (!bo)
return FALSE;
/* recreate the fb in case the size has changed */
assert(bo->delta == 0);
/* XXX recreate the fb in case the size has changed? */
sna_mode->fb_id = get_fb(sna, bo,
scrn->virtualX, scrn->virtualY);
if (sna_mode->fb_id == 0)