Mesa (master): mesa: Recognize MESA_VERBOSE= all as shortcut for all debug options.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Wed Apr 6 07:29:24 UTC 2011
Module: Mesa
Branch: master
Commit: 740282b417caca6c1f223f488ee9a6f9bff81164
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=740282b417caca6c1f223f488ee9a6f9bff81164
Author: José Fonseca <jose.r.fonseca at gmail.com>
Date: Wed Apr 6 08:25:22 2011 +0100
mesa: Recognize MESA_VERBOSE=all as shortcut for all debug options.
---
src/mesa/main/debug.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/debug.c b/src/mesa/main/debug.c
index 2a8fd08..e7f6be9 100644
--- a/src/mesa/main/debug.c
+++ b/src/mesa/main/debug.c
@@ -183,7 +183,7 @@ static void add_debug_flags( const char *debug )
MESA_VERBOSE = 0x0;
for (i = 0; i < Elements(debug_opt); i++) {
- if (strstr(debug, debug_opt[i].name))
+ if (strstr(debug, debug_opt[i].name) || strcmp(debug, "all") == 0)
MESA_VERBOSE |= debug_opt[i].flag;
}
More information about the mesa-commit
mailing list