diff options
author | Dave Airlie <airlied@redhat.com> | 2021-12-20 14:04:33 +1000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-01-21 01:18:19 +0000 |
commit | bc122e076903c04a2ea39798aa59cd3f1ad1d80a (patch) | |
tree | 7dd3649a20468db0ed8972d874222f794f9f283c /src/mesa/state_tracker/st_debug.c | |
parent | e344a117af88daf69aad3fdb2f66e43803c41c08 (diff) |
mesa/st: remove st_context from debug callback
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14632>
Diffstat (limited to 'src/mesa/state_tracker/st_debug.c')
-rw-r--r-- | src/mesa/state_tracker/st_debug.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/state_tracker/st_debug.c b/src/mesa/state_tracker/st_debug.c index b651499181c..414f4ac79d3 100644 --- a/src/mesa/state_tracker/st_debug.c +++ b/src/mesa/state_tracker/st_debug.c @@ -75,7 +75,7 @@ st_debug_message(void *data, const char *fmt, va_list args) { - struct st_context *st = data; + struct gl_context *ctx = data; enum mesa_debug_source source; enum mesa_debug_type type; enum mesa_debug_severity severity; @@ -119,23 +119,23 @@ st_debug_message(void *data, default: unreachable("invalid debug type"); } - _mesa_gl_vdebugf(st->ctx, id, source, type, severity, fmt, args); + _mesa_gl_vdebugf(ctx, id, source, type, severity, fmt, args); } void -st_update_debug_callback(struct st_context *st) +st_update_debug_callback(struct gl_context *ctx) { - struct pipe_context *pipe = st->pipe; + struct pipe_context *pipe = ctx->pipe; if (!pipe->set_debug_callback) return; - if (_mesa_get_debug_state_int(st->ctx, GL_DEBUG_OUTPUT)) { + if (_mesa_get_debug_state_int(ctx, GL_DEBUG_OUTPUT)) { struct pipe_debug_callback cb; memset(&cb, 0, sizeof(cb)); - cb.async = !_mesa_get_debug_state_int(st->ctx, GL_DEBUG_OUTPUT_SYNCHRONOUS); + cb.async = !_mesa_get_debug_state_int(ctx, GL_DEBUG_OUTPUT_SYNCHRONOUS); cb.debug_message = st_debug_message; - cb.data = st; + cb.data = ctx; pipe->set_debug_callback(pipe, &cb); } else { pipe->set_debug_callback(pipe, NULL); |