summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blitter.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-08-17 03:35:13 +0200
committerMarek Olšák <[email protected]>2017-08-22 15:16:44 +0200
commit8f75a6f1af0bdc71a257b48bf65501cb4cd54065 (patch)
tree23a61afbed6ed03b4afb34d62619c577bd1fe3e5 /src/gallium/auxiliary/util/u_blitter.c
parente2f3cfead92dacbfd24c597034301c713775a138 (diff)
gallium/u_blitter: remove get_next_surface_layer callback
Reviewed-by: Nicolai Hähnle <[email protected]> Tested-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.c')
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c7
1 files changed, 1 insertions, 6 deletions
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);