From 2bdfbb0e5380f63f044151a12e149745fa672a77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Sun, 22 Oct 2017 17:38:52 +0200 Subject: [PATCH] gallium/u_threaded: implement pipe_context::set_log_context MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/gallium/auxiliary/util/u_threaded_context.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index 090e7642c17..7db9005452f 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -1804,6 +1804,16 @@ tc_set_debug_callback(struct pipe_context *_pipe, pipe->set_debug_callback(pipe, cb); } +static void +tc_set_log_context(struct pipe_context *_pipe, struct u_log_context *log) +{ + struct threaded_context *tc = threaded_context(_pipe); + struct pipe_context *pipe = tc->pipe; + + tc_sync(tc); + pipe->set_log_context(pipe, log); +} + static void tc_create_fence_fd(struct pipe_context *_pipe, struct pipe_fence_handle **fence, int fd) @@ -2584,6 +2594,7 @@ threaded_context_create(struct pipe_context *pipe, CTX_INIT(get_device_reset_status); CTX_INIT(set_device_reset_callback); CTX_INIT(dump_debug_state); + CTX_INIT(set_log_context); CTX_INIT(emit_string_marker); CTX_INIT(set_debug_callback); CTX_INIT(create_fence_fd); -- 2.30.2