ir_to_mesa: Use the compiler-assigned locations for builtin attrs/varyings.
authorEric Anholt <eric@anholt.net>
Tue, 6 Jul 2010 19:28:12 +0000 (12:28 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 6 Jul 2010 21:05:51 +0000 (14:05 -0700)
commita0b3b9302978ab6d4db62f0c9b2b313ebc7ed0b4
treed2ac34dd4b2e1a85ef3770fe57b12be6183b2fee
parent83035574dbe0e225fbdeb9ceb4f0af9b0e0c5ddb
ir_to_mesa: Use the compiler-assigned locations for builtin attrs/varyings.

The previous table didn't distinguish gl_Color for the VS and FS, so
we would use the FS's attribute index for the VS and read undefined.
This partially fixes glsl-routing to match its behavior on master.
src/mesa/shader/ir_to_mesa.cpp