diff options
author | Marek Olšák <[email protected]> | 2017-04-30 00:42:16 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-05-08 18:32:00 +0200 |
commit | d1ee2b37ffb5c4f8365592d7c548ccf50bd0f10a (patch) | |
tree | 37dbb26ffeac3c3de85ec49a5c9694359a3342d3 /src/mesa/state_tracker/st_atom.h | |
parent | cb2ac69628a89a601ff682fdc3bc3c8ee5e306b3 (diff) |
st/mesa: remove struct st_tracked_state
It contains only one member: the update function. Let's use the update
function directly.
Tested-by: Edmondo Tommasina <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom.h')
-rw-r--r-- | src/mesa/state_tracker/st_atom.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/state_tracker/st_atom.h b/src/mesa/state_tracker/st_atom.h index 0145cefd040..663bc06707b 100644 --- a/src/mesa/state_tracker/st_atom.h +++ b/src/mesa/state_tracker/st_atom.h @@ -48,11 +48,6 @@ enum st_pipeline { ST_PIPELINE_COMPUTE, }; -struct st_tracked_state { - void (*update)( struct st_context *st ); -}; - - void st_init_atoms( struct st_context *st ); void st_destroy_atoms( struct st_context *st ); void st_validate_state( struct st_context *st, enum st_pipeline pipeline ); @@ -77,8 +72,8 @@ enum { #include "st_atom_list.h" #undef ST_STATE -/* Add extern struct declarations. */ -#define ST_STATE(FLAG, st_update) extern const struct st_tracked_state st_update; +/* Declare function prototypes. */ +#define ST_STATE(FLAG, st_update) void st_update(struct st_context *st); #include "st_atom_list.h" #undef ST_STATE |