swrast: fix active attribs with atifragshader
authorMiklós Máté <mtmkls@gmail.com>
Sun, 26 Jun 2016 19:48:00 +0000 (13:48 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 11 Aug 2016 14:29:23 +0000 (08:29 -0600)
commit17f1c49b9ad05af4f6482f6fa950e5dcc1a779d1
tree2d3a9b2b9fb9d5b770852ff651b88494baa2b701
parent8074c6b6eab9f864a5d0bf3123677ffc3edc5cd2
swrast: fix active attribs with atifragshader

Only include the ones that can be used by the shader.

This fixes texture coordinates, which were completely wrong,
because WPOS was included in the list of attribs. It also
increases performance noticeably.

Signed-off-by: Miklós Máté <mtmkls@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/swrast/s_context.c