tgsi/gs: bound max output vertices in shader
authorDave Airlie <airlied@redhat.com>
Wed, 11 Jun 2014 01:38:19 +0000 (11:38 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Jun 2014 02:19:37 +0000 (12:19 +1000)
commita4670de0a00fad11a2b2a5c458a89302b552df64
tree10f4131316954ee12e4b9ecb3f1d9a9da42d9110
parent10e8d557993140cd5df85e38738c26bfce3a4761
tgsi/gs: bound max output vertices in shader

This limits the number of emitted vertices to the shaders max output
vertices, and avoids us writing things into memory that isn't big
enough for it.

Reviewed-by: Zack Rusin <zackr@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/tgsi/tgsi_exec.h