From 685a28fd8a046e8dac02c2c26ab8b169de7a2a29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 30 Mar 2012 00:20:16 +0200 Subject: [PATCH] gallium/util: remove unused parameter nr_vertex_buffers in util_draw_max_index --- src/gallium/auxiliary/draw/draw_pt.c | 1 - src/gallium/auxiliary/util/u_draw.c | 1 - src/gallium/auxiliary/util/u_draw.h | 1 - 3 files changed, 3 deletions(-) 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); -- 2.30.2