[PATCH xserver 08/10] xf86-video-modesetting: Create CONNECTOR_ID properties for outputs

Adam Jackson ajax at nwnk.net
Mon Jan 22 22:10:53 UTC 2018


On Thu, 2017-12-21 at 18:54 -0800, Keith Packard wrote:

> diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c
> index 1ec232f70..ef3dba4cb 100644
> --- a/hw/xfree86/drivers/modesetting/drmmode_display.c
> +++ b/hw/xfree86/drivers/modesetting/drmmode_display.c
> @@ -1509,6 +1509,30 @@ drmmode_output_create_resources(xf86OutputPtr output)
>          j++;
>      }
>  
> +    /* Create CONNECTOR_ID property */
> +    {
> +        Atom    name = MakeAtom("CONNECTOR_ID", 12, TRUE);
> +        INT32   value = mode_output->connector_id;
> +        INT32   prop_range[2] = { 0, 0x7fffffff };
> +
> +        if (name != BAD_RESOURCE) {
> +            err = RRConfigureOutputProperty(output->randr_output, name,
> +                                            FALSE, TRUE, TRUE,
> +                                            2, prop_range);

There's no good reason to make this a range, is there?

- ajax


More information about the xorg-devel mailing list