[Mesa-dev] [PATCH 1/3] gallium/util: remove unused parameter nr_vertex_buffers in util_draw_max_index

Marek Olšák maraeo at gmail.com
Sat May 12 04:14:16 PDT 2012


---
 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 025d539..dbe5e94 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 1f3eb88..5b3c412 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 fdb683c..3dc6918 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);
-- 
1.7.9.5



More information about the mesa-dev mailing list