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

Adam Jackson ajax at redhat.com
Tue Jul 31 18:08:54 UTC 2018

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