u_primconvert: Refactor to remove recursion from util_primconvert_draw_vbo
authorJesse Natalie <jenatali@microsoft.com>
Tue, 26 Apr 2022 23:03:16 +0000 (16:03 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 2 May 2022 16:58:20 +0000 (16:58 +0000)
commit12d88d500dae9d67db0c33f316ba327cf5aaed4e
treeec233edbc23f16998e2591241d3e1b4479dd90ae
parent0474bbcfb9395d53b3738fc3aff6fafed368f8cb
u_primconvert: Refactor to remove recursion from util_primconvert_draw_vbo

This prevents having unused copies of pipe_draw_info and
pipe_draw_start_count_bias on the stack, and makes it easier to do
things once for a multi-draw, which will matter in the next patch.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16182>
src/util/indices/u_primconvert.c