diff options
author | Marek Olšák <marek.olsak@amd.com> | 2022-11-27 14:40:28 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-12-09 13:14:03 +0000 |
commit | 0122a67c81417c3f1041a658b5b2507d3ceb3a3b (patch) | |
tree | abe4c13e42cdf0054571f2fce90f648076b90b5a /src/mesa/state_tracker/st_context.h | |
parent | be8f1d685e73be2692b965567dce559799e6745b (diff) |
gallium: move st function declarations from api.h into st_context.h
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20027>
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r-- | src/mesa/state_tracker/st_context.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index 3185de0b2a1..b3c3ef4a2d7 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracker/st_context.h @@ -453,6 +453,32 @@ st_get_nir_compiler_options(struct st_context *st, gl_shader_stage stage); void st_invalidate_state(struct gl_context *ctx); void st_set_background_context(struct gl_context *ctx, struct util_queue_monitoring *queue_info); + +void +st_api_query_versions(struct pipe_frontend_screen *fscreen, + struct st_config_options *options, + int *gl_core_version, + int *gl_compat_version, + int *gl_es1_version, + int *gl_es2_version); + +struct st_context * +st_api_create_context(struct pipe_frontend_screen *fscreen, + const struct st_context_attribs *attribs, + enum st_context_error *error, + struct st_context *shared_ctx); + +bool +st_api_make_current(struct st_context *st, + struct st_framebuffer_iface *stdrawi, + struct st_framebuffer_iface *streadi); + +struct st_context * +st_api_get_current(void); + +void +st_api_destroy_drawable(struct st_framebuffer_iface *stfbi); + #ifdef __cplusplus } #endif |