[PATCH] xf86: select a fake output for headless servers
Dave Airlie
airlied at gmail.com
Sun Nov 11 15:09:03 PST 2012
>
> xf86: fix compat output selection for no output GPUs
>
> headless servers can no longer startup as we no longer select a compat
> output for the fake framebuffer.
>
> Cc: Dave Airlie <airlied at redhat.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56343
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Dave Airlie <airlied at redhat.com>
> ---
> hw/xfree86/modes/xf86Crtc.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
> index 177f7ac..13251cf 100644
> --- a/hw/xfree86/modes/xf86Crtc.c
> +++ b/hw/xfree86/modes/xf86Crtc.c
> @@ -1847,6 +1847,10 @@ SetCompatOutput(xf86CrtcConfigPtr config)
> output = config->output[config->compat_output];
> }
>
> + /* All outputs are disconnected, select one to fake */
> + if (!output && config->num_output)
> + output = config->output[0];
> +
> return output;
> }
>
> --
> 1.7.10.4
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
More information about the xorg-devel
mailing list