From d1ee2b37ffb5c4f8365592d7c548ccf50bd0f10a Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 30 Apr 2017 00:42:16 +0200 Subject: st/mesa: remove struct st_tracked_state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It contains only one member: the update function. Let's use the update function directly. Tested-by: Edmondo Tommasina Reviewed-by: Brian Paul Reviewed-by: Nicolai Hähnle --- src/mesa/state_tracker/st_atom_pixeltransfer.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/mesa/state_tracker/st_atom_pixeltransfer.c') 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 */ -}; -- cgit v1.2.3