util/prim: assorted fixes for u_decomposed_prims_for_vertices()
authorChia-I Wu <olvaffe@gmail.com>
Thu, 2 May 2013 06:12:27 +0000 (14:12 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Fri, 3 May 2013 03:59:10 +0000 (11:59 +0800)
commit90d5190594c57c5f5ac63442ff526b312ea79744
tree89abfea7ce73c38a05a54ad21f2f1a89208d8f44
parent30671cecc0817ffe59b47e8f70b584bb55447f5d
util/prim: assorted fixes for u_decomposed_prims_for_vertices()

Switch to '>=' for comparisons, and it becomes obvious that the comparison for
PIPE_PRIM_QUAD_STRIP was wrong.

Add minimum vertex count check for PIPE_PRIM_LINE_LOOP.  Return 1 for
PIPE_PRIM_POLYGON with 3 vertices.

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