[Mesa-dev] [PATCH mesa 2/2] mesa: allow user to set MESA_NO_ERROR=0

Nicolai Hähnle nhaehnle at gmail.com
Thu Sep 7 06:56:14 UTC 2017


For the series:

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 06.09.2017 16:23, Eric Engestrom wrote:
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102530
> Cc: Michel Dänzer <michel at daenzer.net>
> Cc: Alexandre Demers <alexandre.f.demers at gmail.com>
> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
> ---
>   src/mesa/main/context.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
> index cd3eccea20..1c4232d298 100644
> --- a/src/mesa/main/context.c
> +++ b/src/mesa/main/context.c
> @@ -123,6 +123,7 @@
>   #include "shared.h"
>   #include "shaderobj.h"
>   #include "shaderimage.h"
> +#include "util/debug.h"
>   #include "util/disk_cache.h"
>   #include "util/strtod.h"
>   #include "stencil.h"
> @@ -1213,7 +1214,7 @@ _mesa_initialize_context(struct gl_context *ctx,
>      /* KHR_no_error is likely to crash, overflow memory, etc if an application
>       * has errors so don't enable it for setuid processes.
>       */
> -   if (getenv("MESA_NO_ERROR")) {
> +   if (env_var_as_boolean("MESA_NO_ERROR", false)) {
>   #if !defined(_WIN32)
>         if (geteuid() == getuid())
>   #endif
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list