xf86-video-intel: src/sna/sna_display.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Dec 27 02:01:03 PST 2012


 src/sna/sna_display.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit dd5b653aa2c5fe2e062533db35c83a40c1952ea6
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Dec 27 09:54:35 2012 +0000

    sna: Do not try and set a 0x0 mode
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 0736cfa..48b53a7 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -1223,6 +1223,9 @@ sna_crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
 	struct drm_mode_modeinfo saved_kmode;
 	bool saved_transform;
 
+	if (mode->HDisplay == 0 || mode->VDisplay == 0)
+		return FALSE;
+
 	xf86DrvMsg(crtc->scrn->scrnIndex, X_INFO,
 		   "switch to mode %dx%d on crtc %d (pipe %d)\n",
 		   mode->HDisplay, mode->VDisplay,


More information about the xorg-commit mailing list