From 22607020f596e0c986cec4c06fcd44d9beb2bda8 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 9 Dec 2021 12:51:47 +1000 Subject: [PATCH] mesa: add a pointer to st_config_options to gl_context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allows porting out of st code easier Reviewed-by: Marek Olšák Part-of: --- 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;