aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_msaa.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-04-30 00:42:16 +0200
committerMarek Olšák <[email protected]>2017-05-08 18:32:00 +0200
commitd1ee2b37ffb5c4f8365592d7c548ccf50bd0f10a (patch)
tree37dbb26ffeac3c3de85ec49a5c9694359a3342d3 /src/mesa/state_tracker/st_atom_msaa.c
parentcb2ac69628a89a601ff682fdc3bc3c8ee5e306b3 (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_msaa.c')
-rw-r--r--src/mesa/state_tracker/st_atom_msaa.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mesa/state_tracker/st_atom_msaa.c b/src/mesa/state_tracker/st_atom_msaa.c
index 69aea6990ab..c591faddd8b 100644
--- a/src/mesa/state_tracker/st_atom_msaa.c
+++ b/src/mesa/state_tracker/st_atom_msaa.c
@@ -38,7 +38,7 @@
/* Update the sample mask for MSAA.
*/
-static void update_sample_mask( struct st_context *st )
+void st_update_sample_mask( struct st_context *st )
{
unsigned sample_mask = 0xffffffff;
struct pipe_framebuffer_state *framebuffer = &st->state.framebuffer;
@@ -72,7 +72,7 @@ static void update_sample_mask( struct st_context *st )
}
}
-static void update_sample_shading( struct st_context *st )
+void st_update_sample_shading( struct st_context *st )
{
if (!st->fp)
return;
@@ -84,11 +84,3 @@ static void update_sample_shading( struct st_context *st )
st->cso_context,
_mesa_get_min_invocations_per_fragment(st->ctx, &st->fp->Base, false));
}
-
-const struct st_tracked_state st_update_msaa = {
- update_sample_mask /* update */
-};
-
-const struct st_tracked_state st_update_sample_shading = {
- update_sample_shading /* update */
-};