From 8f75a6f1af0bdc71a257b48bf65501cb4cd54065 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 17 Aug 2017 03:35:13 +0200 Subject: gallium/u_blitter: remove get_next_surface_layer callback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle Tested-by: Brian Paul --- src/gallium/auxiliary/util/u_blitter.c | 7 +------ src/gallium/auxiliary/util/u_blitter.h | 9 --------- 2 files changed, 1 insertion(+), 15 deletions(-) (limited to 'src/gallium/auxiliary/util') diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 5c826773d15..630fe1102e8 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -147,10 +147,6 @@ struct blitter_context_priv void (*delete_fs_state)(struct pipe_context *, void *); }; -static struct pipe_surface * -util_blitter_get_next_surface_layer(struct pipe_context *pipe, - struct pipe_surface *surf); - struct blitter_context *util_blitter_create(struct pipe_context *pipe) { struct blitter_context_priv *ctx; @@ -167,7 +163,6 @@ struct blitter_context *util_blitter_create(struct pipe_context *pipe) ctx->base.pipe = pipe; ctx->base.draw_rectangle = util_blitter_draw_rectangle; - ctx->base.get_next_surface_layer = util_blitter_get_next_surface_layer; ctx->bind_fs_state = pipe->bind_fs_state; ctx->delete_fs_state = pipe->delete_fs_state; @@ -1730,7 +1725,7 @@ static void do_blits(struct blitter_context_priv *ctx, * just unreference the last one. */ old = dst; if (dst_z < dstbox->depth-1) { - dst = ctx->base.get_next_surface_layer(ctx->base.pipe, dst); + dst = util_blitter_get_next_surface_layer(ctx->base.pipe, dst); } if (dst_z) { pipe_surface_reference(&old, NULL); diff --git a/src/gallium/auxiliary/util/u_blitter.h b/src/gallium/auxiliary/util/u_blitter.h index 912af831f3f..2174f9d9910 100644 --- a/src/gallium/auxiliary/util/u_blitter.h +++ b/src/gallium/auxiliary/util/u_blitter.h @@ -77,15 +77,6 @@ struct blitter_context enum blitter_attrib_type type, const union pipe_color_union *color); - /** - * Get the next surface layer for the pipe surface, i.e. make a copy - * of the surface and increment the first and last layer by 1. - * - * This callback is exposed, so that drivers can override it if needed. - */ - struct pipe_surface *(*get_next_surface_layer)(struct pipe_context *pipe, - struct pipe_surface *surf); - /* Whether the blitter is running. */ boolean running; -- cgit v1.2.3