[Mesa-dev] [RFC] add a config file for dri loader to choose a different dri driver

Yu, Qiang Qiang.Yu at amd.com
Wed Aug 1 01:08:36 UTC 2018


So you mean like the xorg way (priority low -> high):
/usr/share/drirc.d/xxx.conf /etc/drirc.d/xxx.conf /etc/drirc ~/.drirc

OK, I'll add this for the ease of driver config.

Regards,
Qiang

________________________________________
From: Adam Jackson <ajax at redhat.com>
Sent: Wednesday, August 1, 2018 2:08:54 AM
To: Yu, Qiang; mesa-dev at lists.freedesktop.org
Cc: Emil Velikov
Subject: Re: [Mesa-dev] [RFC] add a config file for dri loader to choose a different dri driver

On Tue, 2018-07-31 at 08:03 +0000, Yu, Qiang wrote:
> Seems the mesa driconf infrastructure is just what I need:
> https://dri.freedesktop.org/wiki/ConfigurationInfrastructure/
>
> So I can reference the loader_get_dri_config_device_id implementation
> for adding loader driver override functionality in /etc/drirc:
> <driconf>
>   <device driver="loader">
>     <option name="amdgpu" value="amdgpu" />
>   </device>
> </driconf>
>
> Thoughts?

If you're going to go down this route, please also teach Mesa to look
for drirc (or drirc.d) under /usr/share first, then /etc. /etc really
is for per-machine configuration, Mesa and driver defaults properly
belong in /usr/share.

- ajax


More information about the mesa-dev mailing list