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@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133>
This commit is contained in:
Dave Airlie 2021-12-09 12:51:47 +10:00 committed by Marge Bot
parent f6c608dd24
commit 22607020f5
2 changed files with 3 additions and 0 deletions

View File

@ -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;
/*@}*/
/**

View File

@ -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;