r600g: vertex id support.
authorDave Airlie <airlied@redhat.com>
Sat, 14 Jan 2012 17:04:50 +0000 (17:04 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 15 Jan 2012 08:17:38 +0000 (08:17 +0000)
commit39491d1d31d9f03437816fbb4f2872761ae1157c
tree3b7e355165394ecc54881dc3dd3da93307845552
parent9a401a2fd6c2d9aa07402e33493be3f014c0fe10
r600g: vertex id support.

This requires GLSL 1.30 enabled, which requires integer types enabled,
so don't bother doing an INT to FLT conversion on it.

We should probably remove the instance id flt->int conversion when
turning on native integers.

this passes the three piglit tests with GLSL 1.30 forced on.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c