gallium/util: remove util_draw_range_elements helper
authorMarek Olšák <marek.olsak@amd.com>
Sun, 2 Apr 2017 14:33:07 +0000 (16:33 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 20 Apr 2017 18:11:35 +0000 (20:11 +0200)
min/max_index are typically hints for the u_vbuf module, not the driver.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_draw.h

index b16f10646a7bf33975e2ab0ccf6f4dd80b60b7ea..b6ea3de89056744dea371fe34ead5b78513625da 100644 (file)
@@ -129,29 +129,6 @@ util_draw_elements_instanced(struct pipe_context *pipe,
    pipe->draw_vbo(pipe, &info);
 }
 
-static inline void
-util_draw_range_elements(struct pipe_context *pipe,
-                         int index_bias,
-                         uint min_index,
-                         uint max_index,
-                         enum pipe_prim_type mode,
-                         uint start,
-                         uint count)
-{
-   struct pipe_draw_info info;
-
-   util_draw_init_info(&info);
-   info.indexed = TRUE;
-   info.mode = mode;
-   info.start = start;
-   info.count = count;
-   info.index_bias = index_bias;
-   info.min_index = min_index;
-   info.max_index = max_index;
-
-   pipe->draw_vbo(pipe, &info);
-}
-
 
 /* This converts an indirect draw into a direct draw by mapping the indirect
  * buffer, extracting its arguments, and calling pipe->draw_vbo.