util/prim: clean up and add comments
authorChia-I Wu <olvaffe@gmail.com>
Thu, 2 May 2013 05:29:59 +0000 (13:29 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Fri, 3 May 2013 03:58:57 +0000 (11:58 +0800)
commit185692e72c5031cd8b46f1e26c1539ea4c226e21
tree15b33aff9da20547534ce69c45f381760c8377a4
parent64913002e4e57afc97771ffdb8de1f008534d859
util/prim: clean up and add comments

Move together (or add) functions to decompose/reduce/assemble a primitive,
give them consistent names, and document them.  Add u_prim_vertex_count() so
that the vertex count information can be used elsewhere.

u_assembled_primitive() will be removed in a folow-on commit.

[olv: fix a warning when -Wold-style-declaration is enabled]

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Acked-by: Zack Rusin <zackr@vmware.com>
src/gallium/auxiliary/util/u_prim.h