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

Marek Olšák maraeo at gmail.com
Wed Aug 1 15:48:06 UTC 2018


On my machine, the global drirc resides in /usr/etc/. I guess it's in
a different place for each person. :)

Marek

On Tue, Jul 31, 2018 at 2:08 PM, Adam Jackson <ajax at redhat.com> wrote:
> 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
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list