From: Marek Olšák Date: Thu, 29 Mar 2012 22:20:16 +0000 (+0200) Subject: gallium/util: remove unused parameter nr_vertex_buffers in util_draw_max_index X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=685a28fd8a046e8dac02c2c26ab8b169de7a2a29;p=mesa.git gallium/util: remove unused parameter nr_vertex_buffers in util_draw_max_index --- diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c index 025d53989e4..dbe5e9470b2 100644 --- a/src/gallium/auxiliary/draw/draw_pt.c +++ b/src/gallium/auxiliary/draw/draw_pt.c @@ -505,7 +505,6 @@ draw_vbo(struct draw_context *draw, draw_print_arrays(draw, info->mode, info->start, MIN2(info->count, 20)); index_limit = util_draw_max_index(draw->pt.vertex_buffer, - draw->pt.nr_vertex_buffers, draw->pt.vertex_element, draw->pt.nr_vertex_elements, info); diff --git a/src/gallium/auxiliary/util/u_draw.c b/src/gallium/auxiliary/util/u_draw.c index 1f3eb887959..5b3c41231a2 100644 --- a/src/gallium/auxiliary/util/u_draw.c +++ b/src/gallium/auxiliary/util/u_draw.c @@ -44,7 +44,6 @@ unsigned util_draw_max_index( const struct pipe_vertex_buffer *vertex_buffers, - unsigned nr_vertex_buffers, const struct pipe_vertex_element *vertex_elements, unsigned nr_vertex_elements, const struct pipe_draw_info *info) diff --git a/src/gallium/auxiliary/util/u_draw.h b/src/gallium/auxiliary/util/u_draw.h index fdb683ca8a2..3dc69181c13 100644 --- a/src/gallium/auxiliary/util/u_draw.h +++ b/src/gallium/auxiliary/util/u_draw.h @@ -145,7 +145,6 @@ util_draw_range_elements(struct pipe_context *pipe, unsigned util_draw_max_index( const struct pipe_vertex_buffer *vertex_buffers, - unsigned nr_vertex_buffers, const struct pipe_vertex_element *vertex_elements, unsigned nr_vertex_elements, const struct pipe_draw_info *info);