[Mesa-dev] [PATCH mesa 03/10] egl+glx: turn LIBGL_ALWAYS_SOFTWARE into a boolean
Kenneth Graunke
kenneth at whitecape.org
Fri Sep 8 15:13:54 UTC 2017
On Friday, September 8, 2017 6:33:44 AM PDT Emil Velikov wrote:
> Hi Eric,
>
> On 8 September 2017 at 13:40, Eric Engestrom <eric.engestrom at imgtec.com> wrote:
> > Instead of setting based on set/unset, allow users to use boolean values.
> > In the docs, use `ALWAYS=true` instead of `ALWAYS=1` as it's clearer IMO.
> >
> I'm a bit weary about this series. In the past we had cases where
> people will set the variable to empty string and/or 0 and expect
> things to work.
>
> IIRC the older Intel QA team was using it, not sure about now. Either
> way it's great to confirm with a few people before pushing this.
That team is gone. I like the consistency of using env_var_as_boolean
across the codebase - it might break a few things, but I think that's
okay. Most people don't use this, and most of those that do use =1.
> That aside, env_var_as_boolean() treats 'yes', '1' and 'true' in
> identical manner. Perhaps we can state what a "boolean variable" is
> and use that reference through the documentation?
>
> -Emil
That seems like a good idea.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170908/d1b0bab8/attachment.sig>
More information about the mesa-dev
mailing list