diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2005-05-12 10:28:43 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2005-05-12 10:28:43 +0000 |
commit | 269e3895d9837ac7303b91948f003ca5c12c0fe4 (patch) | |
tree | a9cdca8df60e5e7b259c408e0e3b9617fe62cffc /src/mesa/main | |
parent | 5c72837af9d3e358459c7f2e3ef9263c160d2a70 (diff) |
new MESA_DEBUG option: disassem
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/debug.c | 3 | ||||
-rw-r--r-- | src/mesa/main/mtypes.h | 3 | ||||
-rw-r--r-- | src/mesa/main/texenvprogram.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/main/debug.c b/src/mesa/main/debug.c index 6c6bfea8e5..edc32b1f94 100644 --- a/src/mesa/main/debug.c +++ b/src/mesa/main/debug.c @@ -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: */ diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 374f1c85a2..f6732699b7 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -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 }; diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index 34380c5033..0c2caa0169 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -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. |