diff options
author | Nicolai Hähnle <[email protected]> | 2016-01-04 17:31:05 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-01-04 18:40:49 -0500 |
commit | 2123bfcc9c8b375ba46bb59d493ddeac1b7291a6 (patch) | |
tree | 82a99b725d0e42ec07566da49c704d54e084d9b7 /src/mesa/state_tracker/st_debug.h | |
parent | b16c9be4a5561bd825176a228c300331f989e837 (diff) |
st/mesa: make KHR_debug output independent of context creation flags (v2)
Instead, keep track of GL_DEBUG_OUTPUT and (un)install the pipe_debug_callback
accordingly. Hardware drivers can still use the absence of the callback to
skip more expensive operations in the normal case, and users can no longer be
surprised by the need to set the debug flag at context creation time.
v2:
- re-add the proper initialization of debug contexts (Ilia Mirkin)
- silence a potential warning (Ilia Mirkin)
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_debug.h')
-rw-r--r-- | src/mesa/state_tracker/st_debug.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_debug.h b/src/mesa/state_tracker/st_debug.h index 288eccf9f9c..ed3ead82914 100644 --- a/src/mesa/state_tracker/st_debug.h +++ b/src/mesa/state_tracker/st_debug.h @@ -32,6 +32,8 @@ #include "pipe/p_compiler.h" #include "util/u_debug.h" +struct st_context; + extern void st_print_current(void); @@ -59,6 +61,8 @@ extern int ST_DEBUG; void st_debug_init( void ); +void st_enable_debug_output(struct st_context *st, boolean enable); + static inline void ST_DBG( unsigned flag, const char *fmt, ... ) { |