draw/gs: reduce the size of the gs output buffer
authorZack Rusin <zackr@vmware.com>
Fri, 7 Mar 2014 18:35:45 +0000 (13:35 -0500)
committerZack Rusin <zackr@vmware.com>
Wed, 26 Mar 2014 19:58:32 +0000 (15:58 -0400)
commita3c0fa2d228aeec9d9b3de55a4f086c5af5bdecb
tree7e9eccc3bdc5ea3941265ee8cff36dc035251d17
parentc875d6e57a817bb6a8163a8a98ebd2768ee91848
draw/gs: reduce the size of the gs output buffer

We used to overallocate the output buffer sometimes running out
of memory with applications rendering large geometries. The actual
maximum number of vertices out is simply the maximum number of
primitives in (number of gs invocations) multiplied by the maximum
number of output vertices per gs input primitive (i.e. gs invocation).

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_gs.c