summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-05-09 21:07:57 -0400
committerMarek Olšák <[email protected]>2019-05-13 13:01:01 -0400
commit84816d1464c6dfd54b5b2b804567e4a18ea3d0dc (patch)
tree535c5975473ef1422e986075d88e7ab2a39fcea8
parentd814c21b1bea0396c735d65b363a8f2c6324c7d8 (diff)
st/mesa: enable the ST_DEBUG env var in release and debugoptimized builds
Useful for dumping shaders. Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/mesa/state_tracker/st_debug.c4
-rw-r--r--src/mesa/state_tracker/st_debug.h6
2 files changed, 0 insertions, 10 deletions
diff --git a/src/mesa/state_tracker/st_debug.c b/src/mesa/state_tracker/st_debug.c
index 27d50a17e5e..7faffb581ef 100644
--- a/src/mesa/state_tracker/st_debug.c
+++ b/src/mesa/state_tracker/st_debug.c
@@ -42,7 +42,6 @@
-#ifdef DEBUG
int ST_DEBUG = 0;
static const struct debug_named_value st_debug_flags[] = {
@@ -64,15 +63,12 @@ static const struct debug_named_value st_debug_flags[] = {
};
DEBUG_GET_ONCE_FLAGS_OPTION(st_debug, "ST_DEBUG", st_debug_flags, 0)
-#endif
void
st_debug_init(void)
{
-#ifdef DEBUG
ST_DEBUG = debug_get_option_st_debug();
-#endif
}
diff --git a/src/mesa/state_tracker/st_debug.h b/src/mesa/state_tracker/st_debug.h
index 6c1e915f68c..446baa75c64 100644
--- a/src/mesa/state_tracker/st_debug.h
+++ b/src/mesa/state_tracker/st_debug.h
@@ -53,13 +53,7 @@ st_print_current(void);
#define DEBUG_GREMEDY 0x1000
#define DEBUG_NOREADPIXCACHE 0x2000
-#ifdef DEBUG
extern int ST_DEBUG;
-#define DBSTR(x) x
-#else
-#define ST_DEBUG 0
-#define DBSTR(x) ""
-#endif
void st_debug_init( void );