u_prim_restart: add inline function for getting restart index based on index size
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 31 Jul 2020 15:08:04 +0000 (11:08 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 Aug 2020 16:58:48 +0000 (16:58 +0000)
commit070fd2b66f99464d3bc14f5e0e98c9313770c87c
tree7642f8cab02a3ab725a229647120fafd14248652
parent1f24c54458c64e073c91c4d98049266ac950f840
u_prim_restart: add inline function for getting restart index based on index size

handy to have this available for drivers to reuse

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6147>
src/gallium/auxiliary/util/u_prim_restart.h