gallium/util: Support POLYGON in u_stream_outputs_for_vertices
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 6 Dec 2019 21:45:57 +0000 (16:45 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 9 Dec 2019 21:09:05 +0000 (21:09 +0000)
commita37822f5f740c55cd6f848adfd6c3d567ae4fd79
tree6f7d9e2d28d505410f27f5a877fb44d26cb6e388
parent1a32fbd48c62481cd17c6944ecd17bcb2c2b052a
gallium/util: Support POLYGON in u_stream_outputs_for_vertices

u_decomposed_prims_for_vertices cannot support POLYGON, but POLYGON is
trivial to support as a special case directly (since we have the number
of vertices directly).

Fixes aborts in Panfrost in apps using GL_POLYGON.

Fixes: e881aa8c12c ("gallium/util: Add u_stream_outputs_for_vertices helper")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Revewied-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/util/u_prim.h