aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_vbuf.c
diff options
context:
space:
mode:
authorQiang Yu <[email protected]>2019-03-20 20:31:17 +0800
committerQiang Yu <[email protected]>2019-04-11 09:57:53 +0800
commitd26faef2e9b14bff5738903cd755222698985be6 (patch)
tree15948409ee9c30084126af28109f7dad255198b3 /src/gallium/auxiliary/util/u_vbuf.c
parentdc37942c4e1dff8b9bba96b482a6b4fae766df6f (diff)
gallium/u_vbuf: export u_vbuf_get_minmax_index
This helper function can be used by driver which always need min/max index. Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Qiang Yu <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_vbuf.c')
-rw-r--r--src/gallium/auxiliary/util/u_vbuf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c
index f721613cbc5..02a59bc0575 100644
--- a/src/gallium/auxiliary/util/u_vbuf.c
+++ b/src/gallium/auxiliary/util/u_vbuf.c
@@ -1093,10 +1093,9 @@ u_vbuf_get_minmax_index_mapped(const struct pipe_draw_info *info,
*out_max_index = max;
}
-static void
-u_vbuf_get_minmax_index(struct pipe_context *pipe,
- const struct pipe_draw_info *info,
- unsigned *out_min_index, unsigned *out_max_index)
+void u_vbuf_get_minmax_index(struct pipe_context *pipe,
+ const struct pipe_draw_info *info,
+ unsigned *out_min_index, unsigned *out_max_index)
{
struct pipe_transfer *transfer = NULL;
const void *indices;