st/mesa: make KHR_debug output independent of context creation flags (v2)
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 4 Jan 2016 22:31:05 +0000 (17:31 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 4 Jan 2016 23:40:49 +0000 (18:40 -0500)
commit2123bfcc9c8b375ba46bb59d493ddeac1b7291a6
tree82a99b725d0e42ec07566da49c704d54e084d9b7
parentb16c9be4a5561bd825176a228c300331f989e837
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 <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_debug.c
src/mesa/state_tracker/st_debug.h
src/mesa/state_tracker/st_manager.c