mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 21:30:23 +01:00
st/mesa: enable the ST_DEBUG env var in release and debugoptimized builds
Useful for dumping shaders. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
d814c21b1b
commit
84816d1464
2 changed files with 0 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue