mesa: Add count_tessellated_primitives() function.
authorPaul Berry <stereotype441@gmail.com>
Mon, 19 Dec 2011 19:47:14 +0000 (11:47 -0800)
committerPaul Berry <stereotype441@gmail.com>
Tue, 20 Dec 2011 23:22:28 +0000 (15:22 -0800)
commitdc7b6d7d6defdfe4f79fb682d3378a3bed8b5db9
treec6c1cfd9b23c8528cf90b98b35fd8b63f2618483
parent291ae4e6396872679fef72ed4fdd46fb7f945c3d
mesa: Add count_tessellated_primitives() function.

This function computes the number of primitives that will be generated
when the given drawing operation is performed.  It accounts for the
tessellation that is performed on line strips, line loops, triangle
strips, triangle fans, quads, quad strips, and polygons, so it is
suitable for implementing the primitive counters needed by transform
feedback.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_exec.c