diff options
author | Brian Paul <[email protected]> | 2017-11-10 11:00:22 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-11-15 16:12:43 -0700 |
commit | 0605a6cc89d92d0eb096f124163a26e22c190a1d (patch) | |
tree | 7145c896dac4a216ab9f240d8dc06cad1247f5b8 /src/mesa/state_tracker | |
parent | 3a74eb3a9b1f31df5c7be091bdf9e6509eaf27a6 (diff) |
st/mesa: move st_manager_destroy() earlier in file
To avoid forward declaration.
Reviewed-By: Gert Wollny <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_manager.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 4a1998cae63..1121b5cfc42 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -69,7 +69,6 @@ struct st_manager_private mtx_t st_mutex; }; -static void st_manager_destroy(struct st_manager *); /** * Map an attachment to a buffer index. @@ -795,6 +794,21 @@ st_thread_finish(struct st_context_iface *stctxi) _mesa_glthread_finish(st->ctx); } + +static void +st_manager_destroy(struct st_manager *smapi) +{ + struct st_manager_private *smPriv = smapi->st_manager_private; + + if (smPriv && smPriv->stfbi_ht) { + _mesa_hash_table_destroy(smPriv->stfbi_ht, NULL); + mtx_destroy(&smPriv->st_mutex); + free(smPriv); + smapi->st_manager_private = NULL; + } +} + + static struct st_context_iface * st_api_create_context(struct st_api *stapi, struct st_manager *smapi, const struct st_context_attribs *attribs, @@ -1149,18 +1163,6 @@ st_manager_add_color_renderbuffer(struct st_context *st, return TRUE; } -static void -st_manager_destroy(struct st_manager *smapi) -{ - struct st_manager_private *smPriv = smapi->st_manager_private; - - if (smPriv && smPriv->stfbi_ht) { - _mesa_hash_table_destroy(smPriv->stfbi_ht, NULL); - mtx_destroy(&smPriv->st_mutex); - free(smPriv); - smapi->st_manager_private = NULL; - } -} static unsigned get_version(struct pipe_screen *screen, |