mesa: Recognize MESA_VERBOSE=all as shortcut for all debug options.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 6 Apr 2011 07:25:22 +0000 (08:25 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 6 Apr 2011 07:27:53 +0000 (08:27 +0100)
src/mesa/main/debug.c

index 2a8fd08..e7f6be9 100644 (file)
@@ -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;
    }