u_draw: Add some indices to the util_draw_elements() helpers.
authorEric Anholt <eric@anholt.net>
Wed, 11 Jul 2018 21:58:40 +0000 (14:58 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 12 Jul 2018 18:49:20 +0000 (11:49 -0700)
commitc17dac0534b445937a6e13fea3dabd59aac139ff
tree51214323c7897553a8a7ccb77277e3e3201057fa
parent50a3a283d052a8d7a5f75fb45ab540d397fb22c2
u_draw: Add some indices to the util_draw_elements() helpers.

These helpers have been unused, and were definitely not useful since
330d0607ed60 ("gallium: remove pipe_index_buffer and set_index_buffer")
made it so that they never had an index buffer passed in.

For an upcoming u_blitter change to use these helpers, I have just 6 bytes
of index data, so pass it as user data until a more interesting caller
comes along.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_draw.h