gallium/indices: generalize primitive-restart logic
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 18 Jun 2020 13:05:13 +0000 (15:05 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 12:12:27 +0000 (12:12 +0000)
commitac96225eb0e4108a416049f3ebac6c5bdb178e9d
tree4aef8093edea14734e99065af270067c7e7eb96f
parent2122b902b8003719c739db718a97463bbf99ebb3
gallium/indices: generalize primitive-restart logic

These blocks are all the same logic, but with a few details changed.
Let's add a parameterized version and add calls to that instead.

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5976>
src/gallium/auxiliary/indices/u_indices_gen.py