draw: cleanup the extra attribs
authorZack Rusin <zackr@vmware.com>
Wed, 7 Aug 2013 00:24:26 +0000 (20:24 -0400)
committerZack Rusin <zackr@vmware.com>
Fri, 9 Aug 2013 00:53:40 +0000 (20:53 -0400)
commit57cd3267782fcf92d1e7d772760956516d4367df
tree7b6318e314e9119935f803cc54e327100e648bba
parent8f40fa0e7f47093d6e93ca4dd12569a6f948dae6
draw: cleanup the extra attribs

Before inserting new front face and prim id outputs cleanup
the old extra outputs, otherwise our cache will use previous
output slots which will break as soon as outputs of the current
shader don't match the last.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_context.c