llvmpipe: Use util_draw_multi() helper

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9742>
This commit is contained in:
Rob Clark 2021-03-21 09:59:16 -07:00 committed by Marge Bot
parent c75838de66
commit c6ecf1ce65

View File

@ -57,13 +57,7 @@ llvmpipe_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info,
unsigned num_draws)
{
if (num_draws > 1) {
struct pipe_draw_info tmp_info = *info;
for (unsigned i = 0; i < num_draws; i++) {
llvmpipe_draw_vbo(pipe, &tmp_info, indirect, &draws[i], 1);
if (tmp_info.increment_draw_id)
tmp_info.drawid++;
}
util_draw_multi(pipe, info, indirect, draws, num_draws);
return;
}