st/xorg: initialize drm_mode.type
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 5 Jun 2011 19:05:24 +0000 (21:05 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 20 Jun 2011 00:28:02 +0000 (02:28 +0200)
it's uninitialized, but used by kernel (drm_mode_setcrtc -> drm_mode_set_crtcinfo)

Signed-off-by: Marek Olšák <maraeo@gmail.com>
src/gallium/state_trackers/xorg/xorg_crtc.c

index 0499ed1ea0b59925004fc6e6343a0a07136788e6..22e61cf708155bd6f3a154e59d6f3da3059e2801 100644 (file)
@@ -122,6 +122,7 @@ crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
     drm_mode.hskew = mode->HSkew;
     drm_mode.vscan = mode->VScan;
     drm_mode.vrefresh = mode->VRefresh;
+    drm_mode.type = 0;
     if (!mode->name)
        xf86SetModeDefaultName(mode);
     strncpy(drm_mode.name, mode->name, DRM_DISPLAY_MODE_LEN - 1);