[PATCH xserver] xfree86: Fix fallback driver sort order for Xorg -configure

Keith Packard keithp at keithp.com
Tue Jul 12 18:31:24 UTC 2016


Adam Jackson <ajax at redhat.com> writes:

> +static int
> +driver_sort(void *_l, void *_r)
> +{
> +    const char *l = *(const char **)_l;
> +    const char *r = *(const char **)_r;
> +    int left = is_fallback(l);
> +    int right = is_fallback(r);
> +
> +    /* neither is a fallback */
> +    if (left == -1 && right == -1)
> +	return 0;

Do we want to provide some stability to the sort here so that we don't
re-order the list? I'm thinking nvidia vs nouveau here.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20160712/4c167c14/attachment.sig>


More information about the xorg-devel mailing list