aux/primconvert: handle singular incomplete restarts
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 1 Nov 2021 16:48:39 +0000 (12:48 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 4 Nov 2021 20:12:32 +0000 (20:12 +0000)
commitbc345281ab95313c2e34fffbd993bd1fbfc016be
treef87844add635f0e9e6abc7ecb52a2629ec3a1398
parent1e869e3fb4255351de5e908c5a53851bb58c3f2b
aux/primconvert: handle singular incomplete restarts

if no restart indices are found, this draw must be discarded to avoid
crashing later on

Fixes: 583070748cb ("util/primconvert: handle rewriting of prim-restart draws with unsupported primtype")

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13630>
src/gallium/auxiliary/indices/u_primconvert.c