util: add a couple primitive restart helper functions
authorBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2015 22:29:17 +0000 (16:29 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2015 22:29:17 +0000 (16:29 -0600)
commit84e71ef2ee4ab4a781aa86a7239036257e5992ce
treeb575b1ff0256be54011dd9162ce1422a696c2db2
parent14f35194d89901a04cb2180a788f90e1bedf5399
util: add a couple primitive restart helper functions

The first function translates prim restart indexes to be 0xffff or
0xffffffff.

The second splits indexed primitives with restart indexes into sub-
primitives without restart indexes.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/util/u_prim_restart.c [new file with mode: 0644]
src/gallium/auxiliary/util/u_prim_restart.h [new file with mode: 0644]