new MESA_DEBUG option: disassem
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 12 May 2005 10:28:43 +0000 (10:28 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 12 May 2005 10:28:43 +0000 (10:28 +0000)
src/mesa/main/debug.c
src/mesa/main/mtypes.h
src/mesa/main/texenvprogram.c

index 6c6bfea8e55231d4853913b087355bae24435423..edc32b1f94d44cd0dd27f35fd844ee0e56db192d 100644 (file)
@@ -176,6 +176,9 @@ static void add_debug_flags( const char *debug )
 
    if (_mesa_strstr(debug, "lighting")) 
       MESA_VERBOSE |= VERBOSE_LIGHTING;
+
+   if (_mesa_strstr(debug, "disassem")) 
+      MESA_VERBOSE |= VERBOSE_DISASSEM;
    
    /* Debug flag:
     */
index 374f1c85a26a1e3d62605728c7b055eac3145fb3..f6732699b77c5790af8eb800affc3c9d1f1735f4 100644 (file)
@@ -2895,7 +2895,8 @@ enum _verbose
    VERBOSE_DISPLAY_LIST                = 0x0100,
    VERBOSE_LIGHTING            = 0x0200,
    VERBOSE_PRIMS               = 0x0400,
-   VERBOSE_VERTS               = 0x0800
+   VERBOSE_VERTS               = 0x0800,
+   VERBOSE_DISASSEM            = 0x1000
 };
 
 
index 34380c5033f6e20ff241596af07aedf10edd3c1b..0c2caa0169ec6b41e11182effcd3a06a4d38904a 100644 (file)
@@ -37,7 +37,7 @@
 #include "shader/arbfragparse.h"
 
 
-#define DISASSEM 0
+#define DISASSEM (MESA_VERBOSE & VERBOSE_DISASSEM)
 
 /* Use uregs to represent registers internally, translate to Mesa's
  * expected formats on emit.