summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_log.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-11-01 10:57:25 -0600
committerBrian Paul <[email protected]>2008-11-01 15:58:00 -0600
commitb3cfcd326b1bc21ce163c5b05288cbff5f909cd9 (patch)
treeae776b4c95ada24759510704b74093ab35765fdd /src/mesa/shader/slang/slang_log.c
parentfa139f8826583aa31db442affc2cd11fa06ef725 (diff)
mesa: additional debug flags for glsl debug/disassembly
Diffstat (limited to 'src/mesa/shader/slang/slang_log.c')
-rw-r--r--src/mesa/shader/slang/slang_log.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/slang_log.c b/src/mesa/shader/slang/slang_log.c
index 01591ceba5c..dc838c72ade 100644
--- a/src/mesa/shader/slang/slang_log.c
+++ b/src/mesa/shader/slang/slang_log.c
@@ -23,6 +23,7 @@
*/
#include "main/imports.h"
+#include "main/context.h"
#include "slang_log.h"
#include "slang_utility.h"
@@ -86,9 +87,11 @@ slang_info_log_message(slang_info_log * log, const char *prefix,
}
slang_string_concat(log->text, msg);
slang_string_concat(log->text, "\n");
-#if 0 /* debug */
- _mesa_printf("Mesa GLSL error/warning: %s\n", log->text);
-#endif
+
+ if (MESA_VERBOSE & VERBOSE_GLSL) {
+ _mesa_printf("Mesa: GLSL %s\n", log->text);
+ }
+
return 1;
}