From b17c44c8d234cb2c651e88c7892bcd5b33139c1c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 22 May 2012 09:43:51 +0100 Subject: [PATCH] sna: Remove incorrect assertion for mode restoration Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index e302d70c..cacacdfa 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -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)