[Mesa-dev] [PATCH 2/2] dri/common: drop loading /etc/drirc

Marek Olšák maraeo at gmail.com
Wed Sep 2 15:26:44 PDT 2015


On Wed, Sep 2, 2015 at 10:56 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> On Wednesday, September 02, 2015 02:26:56 AM Marek Olšák wrote:
>> From: Marek Olšák <marek.olsak at amd.com>
>>
>> A user can be using Mesa 11.0, but /etc/drirc can be from Mesa 10.5.
>> We don't want the old drirc to affect Mesa 11.0.
>>
>> There are 2 options:
>> - use a different file name (e.g. /etc/drirc_global) for people wanting
>>   a global drirc file, but they must supply it by themselves
>> - just don't load it, users should use ~/.drirc
>>
>> This patch implements the latter.
>> ---
>>  src/mesa/drivers/dri/common/xmlconfig.c | 18 +++++++++---------
>>  1 file changed, 9 insertions(+), 9 deletions(-)
>
> I don't really get the rationale.  /etc/drirc could be properly managed
> by the package manager - shipped alongside *_dri.so in the same package.
> Maybe it isn't today, but it could be handled well.
>
> But ~/.drirc is entirely in the users control.  Neither the distros nor
> us can manage what the user puts there.  It's *very* likely to be
> stale...

The idea is that ~/.drirc should only contain options like an
anisotropic filtering override and other useful overrides. Hacks which
remove features or change the GLSL compiler behavior should not be
part of it.

Marek


More information about the mesa-dev mailing list