diff options
author | Marek Olšák <marek.olsak@amd.com> | 2017-04-30 00:42:16 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2017-05-08 18:32:00 +0200 |
commit | d1ee2b37ffb5c4f8365592d7c548ccf50bd0f10a (patch) | |
tree | 37dbb26ffeac3c3de85ec49a5c9694359a3342d3 /src/mesa/state_tracker/st_atom_sampler.c | |
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 <edmondo.tommasina@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/mesa/state_tracker/st_atom_sampler.c')
-rw-r--r-- | src/mesa/state_tracker/st_atom_sampler.c | 49 |
1 files changed, 12 insertions, 37 deletions
diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c index 065d1df3353..f33e334bb9e 100644 --- a/src/mesa/state_tracker/st_atom_sampler.c +++ b/src/mesa/state_tracker/st_atom_sampler.c @@ -334,8 +334,8 @@ update_shader_samplers(struct st_context *st, } -static void -update_vertex_samplers(struct st_context *st) +void +st_update_vertex_samplers(struct st_context *st) { const struct gl_context *ctx = st->ctx; @@ -348,8 +348,8 @@ update_vertex_samplers(struct st_context *st) } -static void -update_tessctrl_samplers(struct st_context *st) +void +st_update_tessctrl_samplers(struct st_context *st) { const struct gl_context *ctx = st->ctx; @@ -364,8 +364,8 @@ update_tessctrl_samplers(struct st_context *st) } -static void -update_tesseval_samplers(struct st_context *st) +void +st_update_tesseval_samplers(struct st_context *st) { const struct gl_context *ctx = st->ctx; @@ -380,8 +380,8 @@ update_tesseval_samplers(struct st_context *st) } -static void -update_geometry_samplers(struct st_context *st) +void +st_update_geometry_samplers(struct st_context *st) { const struct gl_context *ctx = st->ctx; @@ -396,8 +396,8 @@ update_geometry_samplers(struct st_context *st) } -static void -update_fragment_samplers(struct st_context *st) +void +st_update_fragment_samplers(struct st_context *st) { const struct gl_context *ctx = st->ctx; @@ -410,8 +410,8 @@ update_fragment_samplers(struct st_context *st) } -static void -update_compute_samplers(struct st_context *st) +void +st_update_compute_samplers(struct st_context *st) { const struct gl_context *ctx = st->ctx; @@ -424,28 +424,3 @@ update_compute_samplers(struct st_context *st) &st->state.num_samplers[PIPE_SHADER_COMPUTE]); } } - - -const struct st_tracked_state st_update_vertex_sampler = { - update_vertex_samplers /* update */ -}; - -const struct st_tracked_state st_update_tessctrl_sampler = { - update_tessctrl_samplers /* update */ -}; - -const struct st_tracked_state st_update_tesseval_sampler = { - update_tesseval_samplers /* update */ -}; - -const struct st_tracked_state st_update_geometry_sampler = { - update_geometry_samplers /* update */ -}; - -const struct st_tracked_state st_update_fragment_sampler = { - update_fragment_samplers /* update */ -}; - -const struct st_tracked_state st_update_compute_sampler = { - update_compute_samplers /* update */ -}; |