[Mesa-dev] [PATCH v2 6/8] gallium: Enable swr driver
Kyriazis, George
george.kyriazis at intel.com
Thu Nov 10 17:27:16 UTC 2016
> -----Original Message-----
> From: Emil Velikov [mailto:emil.l.velikov at gmail.com]
> Sent: Thursday, November 10, 2016 8:14 AM
> To: Kyriazis, George <george.kyriazis at intel.com>
> Cc: ML mesa-dev <mesa-dev at lists.freedesktop.org>
> Subject: Re: [Mesa-dev] [PATCH v2 6/8] gallium: Enable swr driver
>
> "gallium/targets: scons: wire swr support for libgl-gdi/libgl-xlib/osmesa"
>
> ... or alike ?
>
> > +import SCons.Script.SConscript
> > +
>
> > + if 'swr' in SCons.Script.ARGUMENTS and
> SCons.Script.ARGUMENTS['swr']:
> With the "move this to top level" suggestion this will read roughly as
>
> if env['swr']:
>
The command line variables, however (like swr=1) are not part of the environment. Even then, env['swr'] would fail for non-swr builds, since 'swr' is not in the env dictionary. This works for env['llvm'] sincellvm.py initially sets it to False. So, it will still be a 2-level test: if 'swr' in env and env['swr']:, which is not a simplication really.
Is your point to move it to the environment, or to do a one-check test?
Thanks,
George
> -Emil
More information about the mesa-dev
mailing list