diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-10-22 17:38:52 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-11-06 11:09:47 +0100 |
commit | 3f625ea6732295bcc804219d9999638548f75239 (patch) | |
tree | 51fcd7b42c2521b6eca6edddcb5248594646e678 | |
parent | 221fdaa1cac855ffa032ae0b166907412911cedd (diff) |
gallium/u_threaded: implement pipe_context::set_log_context
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r-- | src/gallium/auxiliary/util/u_threaded_context.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index 4908ea8a7b..1f8a9d5088 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -1786,6 +1786,16 @@ tc_set_debug_callback(struct pipe_context *_pipe, } 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) { @@ -2565,6 +2575,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); |