tgsi/softpipe: add VertexID support.
authorDave Airlie <airlied@redhat.com>
Thu, 5 Jan 2012 16:59:24 +0000 (16:59 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Jan 2012 07:13:35 +0000 (07:13 +0000)
commit34a78b7ef6b0edf217acf221eab4b63542be5552
tree8c2ee9200fe4b1ed720bec572c722aefd6c40106
parent02932f37fa030f2d438b599106651cb938c3edc9
tgsi/softpipe: add VertexID support.

This required changing the system value semantics, so we stored
a system value per vertex, instance id is the only other system
value we currently support, so I span it across the channels.

This passes the 3 vertexid-* piglit tests + lots of instanceid tests.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/draw/draw_vs_exec.c
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/tgsi/tgsi_exec.h