aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_pixeltransfer.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_pixeltransfer.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_pixeltransfer.c')
-rw-r--r--src/mesa/state_tracker/st_atom_pixeltransfer.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/state_tracker/st_atom_pixeltransfer.c b/src/mesa/state_tracker/st_atom_pixeltransfer.c
index a2951a1d6be..9b990360719 100644
--- a/src/mesa/state_tracker/st_atom_pixeltransfer.c
+++ b/src/mesa/state_tracker/st_atom_pixeltransfer.c
@@ -84,8 +84,8 @@ load_color_map_texture(struct gl_context *ctx, struct pipe_resource *pt)
/**
* Upload the pixel transfer color map texture.
*/
-static void
-update_pixel_transfer(struct st_context *st)
+void
+st_update_pixel_transfer(struct st_context *st)
{
struct gl_context *ctx = st->ctx;
@@ -100,8 +100,3 @@ update_pixel_transfer(struct st_context *st)
load_color_map_texture(ctx, st->pixel_xfer.pixelmap_texture);
}
}
-
-
-const struct st_tracked_state st_update_pixel_transfer = {
- update_pixel_transfer /* update */
-};