Mesa (main): aux/tc: handle link_shader
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 8 19:47:12 UTC 2022
Module: Mesa
Branch: main
Commit: e6c1426166a1ad32a841340c9a3b1232ed3b626d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6c1426166a1ad32a841340c9a3b1232ed3b626d
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Jun 6 09:25:56 2022 -0400
aux/tc: handle link_shader
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16906>
---
src/gallium/auxiliary/util/u_threaded_context.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c
index 8455bae9947..4017bab7c56 100644
--- a/src/gallium/auxiliary/util/u_threaded_context.c
+++ b/src/gallium/auxiliary/util/u_threaded_context.c
@@ -1048,7 +1048,12 @@ tc_bind_sampler_states(struct pipe_context *_pipe,
memcpy(p->slot, states, count * sizeof(states[0]));
}
-
+static void
+tc_link_shader(struct pipe_context *_pipe, void **shaders)
+{
+ struct threaded_context *tc = threaded_context(_pipe);
+ tc->pipe->link_shader(tc->pipe, shaders);
+}
/********************************************************************
* immediate states
*/
@@ -4416,6 +4421,7 @@ threaded_context_create(struct pipe_context *pipe,
CTX_INIT(create_depth_stencil_alpha_state);
CTX_INIT(bind_depth_stencil_alpha_state);
CTX_INIT(delete_depth_stencil_alpha_state);
+ CTX_INIT(link_shader);
CTX_INIT(create_fs_state);
CTX_INIT(bind_fs_state);
CTX_INIT(delete_fs_state);
More information about the mesa-commit
mailing list