util/vbuf: fix multidraw unrolling
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 6 Feb 2023 15:14:24 +0000 (10:14 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 8 Feb 2023 12:41:32 +0000 (12:41 +0000)
commit8f5a63ebfe84f0bdaa7959fae79e9d42a17113ac
treecd53380a3975bd9c3bd30401d96d912c133888c2
parentc6ebd2de71dc2819400b404be0e3d50924302410
util/vbuf: fix multidraw unrolling

* drawid needs to be incremented at end of loop
* rescope draw structs to initialize at top of loop

fix #8191

Fixes: 6b07893b31f ("util/vbuf: handle multidraws")

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Mark Janes <markjanes@swizzler.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21139>
src/gallium/auxiliary/util/u_vbuf.c