[PATCH xserver 03/10] xfree86/modes: Check for non-desktop monitors during PreInit

Michel Dänzer michel at daenzer.net
Fri Dec 22 09:15:21 UTC 2017


On 2017-12-22 03:54 AM, Keith Packard wrote:
> At startup, we want to ignore non-desktop monitors unless we don't
> find any desktop monitors. Because there are no DIX RandR resources
> allocated, let the driver store this information in a new field in the
> xf86Output structure and then use that value to help decide whether to
> include an output as part of the default configuration.
> 
> Signed-off-by: Keith Packard <keithp at keithp.com>

[...]

> diff --git a/hw/xfree86/modes/xf86Crtc.h b/hw/xfree86/modes/xf86Crtc.h
> index 215eb2a04..83a7b73dc 100644
> --- a/hw/xfree86/modes/xf86Crtc.h
> +++ b/hw/xfree86/modes/xf86Crtc.h
> @@ -627,6 +627,11 @@ struct _xf86Output {
>      /** Whether to use the old per-screen Monitor config section */
>      Bool use_screen_monitor;
>  
> +    /** For pre-init, whether the output should be excluded from the
> +     * desktop when there are other viable outputs to use
> +     */
> +    Bool non_desktop;

Can we also bump XF86_CRTC_VERSION, so out-of-tree drivers can know when
this field is available?


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the xorg-devel mailing list