[PATCH 1/3] xfree86: Report DRI3 as a built-in module

Mark Kettenis mark.kettenis at xs4all.nl
Mon May 12 02:29:58 PDT 2014


> From: Chris Wilson <chris at chris-wilson.co.uk>
> Date: Mon, 12 May 2014 08:12:37 +0100
> 
> This is so that drivers can do a runtime check that DRI3 is available,
> similar to existing runtime checks performed by the drivers for DRI and
> DRI2.

Does that run-time check actually work?  It seems any check based on
compiled_in_modules would detect DRI3 even on platforms that don't
support DRI3 or if the server was built using --disable-dri3.

> ---
>  hw/xfree86/loader/loadmod.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c
> index 092bf57..9f54929 100644
> --- a/hw/xfree86/loader/loadmod.c
> +++ b/hw/xfree86/loader/loadmod.c
> @@ -838,6 +838,7 @@ static const char *compiled_in_modules[] = {
>      "extmod",
>      "dri",
>      "dri2",
> +    "dri3",
>      NULL
>  };


More information about the xorg-devel mailing list