Adam Jackson <[email protected]> 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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to