Mesa (main): mesa: add a pointer to st_config_options to gl_context
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Dec 15 14:02:49 UTC 2021
Module: Mesa
Branch: main
Commit: 22607020f596e0c986cec4c06fcd44d9beb2bda8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=22607020f596e0c986cec4c06fcd44d9beb2bda8
Author: Dave Airlie <airlied at redhat.com>
Date: Thu Dec 9 12:51:47 2021 +1000
mesa: add a pointer to st_config_options to gl_context
Allows porting out of st code easier
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133>
---
src/mesa/main/mtypes.h | 2 ++
src/mesa/state_tracker/st_context.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 24cbd5f7197..289a3b7906a 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -5575,6 +5575,8 @@ struct gl_context
struct vbo_context vbo_context;
struct st_context *st;
struct pipe_context *pipe;
+ struct st_config_options *st_opts;
+
/*@}*/
/**
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 06f6e1868dc..90902079441 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -546,6 +546,7 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
st->options = *options;
+ ctx->st_opts = &st->options;
ctx->st = st;
st->ctx = ctx;
More information about the mesa-commit
mailing list