[Mesa-dev] [PATCH] st/xorg: initialize drm_mode.type
Marek Olšák
maraeo at gmail.com
Sun Jun 19 17:28:30 PDT 2011
Pushed, thanks.
Marek
On Mon, Jun 20, 2011 at 12:09 AM, Marcin Slusarz
<marcin.slusarz at gmail.com> wrote:
> On Sun, Jun 05, 2011 at 09:05:24PM +0200, Marcin Slusarz wrote:
>> it's uninitialized, but used by kernel (drm_mode_setcrtc -> drm_mode_set_crtcinfo)
>> ---
>> src/gallium/state_trackers/xorg/xorg_crtc.c | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/gallium/state_trackers/xorg/xorg_crtc.c b/src/gallium/state_trackers/xorg/xorg_crtc.c
>> index 0499ed1..22e61cf 100644
>> --- a/src/gallium/state_trackers/xorg/xorg_crtc.c
>> +++ b/src/gallium/state_trackers/xorg/xorg_crtc.c
>> @@ -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);
>> --
>
> Can someone commit this patch?
>
> Marcin
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list