From: Marek Olšák <marek.ol...@amd.com> --- src/gallium/auxiliary/util/u_blitter.c | 7 +------ src/gallium/auxiliary/util/u_blitter.h | 9 --------- 2 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 9303179..6b666b2 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -133,41 +133,36 @@ struct blitter_context_priv boolean has_txf; boolean cube_as_2darray; boolean cached_all_shaders; /* The Draw module overrides these functions. * Always create the blitter before Draw. */ void (*bind_fs_state)(struct pipe_context *, void *); 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; struct pipe_blend_state blend; struct pipe_depth_stencil_alpha_state dsa; struct pipe_rasterizer_state rs_state; struct pipe_sampler_state sampler_state; struct pipe_vertex_element velem[2]; unsigned i, j; ctx = CALLOC_STRUCT(blitter_context_priv); if (!ctx) return NULL; 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; /* init state objects for them to be considered invalid */ ctx->base.saved_blend_state = INVALID_PTR; ctx->base.saved_dsa_state = INVALID_PTR; ctx->base.saved_rs_state = INVALID_PTR; ctx->base.saved_fs = INVALID_PTR; ctx->base.saved_vs = INVALID_PTR; @@ -1704,21 +1699,21 @@ static void do_blits(struct blitter_context_priv *ctx, srcbox->y + srcbox->height, uses_txf); blitter_draw(ctx, dstbox->x, dstbox->y, dstbox->x + dstbox->width, dstbox->y + dstbox->height, 0, 1); } /* Get the next surface or (if this is the last iteration) * 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); } } } } void util_blitter_blit_generic(struct blitter_context *blitter, struct pipe_surface *dst, diff --git a/src/gallium/auxiliary/util/u_blitter.h b/src/gallium/auxiliary/util/u_blitter.h index 81b948f..34f181b 100644 --- a/src/gallium/auxiliary/util/u_blitter.h +++ b/src/gallium/auxiliary/util/u_blitter.h @@ -70,29 +70,20 @@ struct blitter_context * \note A driver may optionally override this callback to implement * a specialized hardware path for drawing a rectangle, e.g. using * a rectangular point sprite. */ void (*draw_rectangle)(struct blitter_context *blitter, int x1, int y1, int x2, int y2, float depth, 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; /* Private members, really. */ struct pipe_context *pipe; /**< pipe context */ void *saved_blend_state; /**< blend state */ void *saved_dsa_state; /**< depth stencil alpha state */ void *saved_velem_state; /**< vertex elements state */ void *saved_rs_state; /**< rasterizer state */ -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev