summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_context.c
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2013-08-06 20:24:26 -0400
committerZack Rusin <zackr@vmware.com>2013-08-08 20:53:40 -0400
commit57cd3267782fcf92d1e7d772760956516d4367df (patch)
tree7b6318e314e9119935f803cc54e327100e648bba /src/gallium/auxiliary/draw/draw_context.c
parent8f40fa0e7f47093d6e93ca4dd12569a6f948dae6 (diff)
downloadexternal_mesa3d-57cd3267782fcf92d1e7d772760956516d4367df.tar.gz
external_mesa3d-57cd3267782fcf92d1e7d772760956516d4367df.tar.bz2
external_mesa3d-57cd3267782fcf92d1e7d772760956516d4367df.zip
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>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index af9caee0ed..2dc6772e7f 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -555,6 +555,7 @@ draw_get_shader_info(const struct draw_context *draw)
void
draw_prepare_shader_outputs(struct draw_context *draw)
{
+ draw_remove_extra_vertex_attribs(draw);
draw_ia_prepare_outputs(draw, draw->pipeline.ia);
draw_unfilled_prepare_outputs(draw, draw->pipeline.unfilled);
}