aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-04-02 16:33:07 +0200
committerMarek Olšák <[email protected]>2017-04-20 20:11:35 +0200
commit4219e09343b1e8d7cf0757ee2c9019b78a184e7b (patch)
tree9c55405b2e0caf77f4990263e79cb9c542339512 /src/gallium/auxiliary
parent707d2e8b3e53c761720adaca7137b242dff344b6 (diff)
gallium/util: remove util_draw_range_elements helper
min/max_index are typically hints for the u_vbuf module, not the driver. Reviewed-by: Ilia Mirkin <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_draw.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/gallium/auxiliary/util/u_draw.h b/src/gallium/auxiliary/util/u_draw.h
index b16f10646a7..b6ea3de8905 100644
--- a/src/gallium/auxiliary/util/u_draw.h
+++ b/src/gallium/auxiliary/util/u_draw.h
@@ -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.