Mesa (master): draw: cleanup the extra attribs
Zack Rusin
zack at kemper.freedesktop.org
Fri Aug 9 00:58:36 UTC 2013
Module: Mesa
Branch: master
Commit: 57cd3267782fcf92d1e7d772760956516d4367df
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=57cd3267782fcf92d1e7d772760956516d4367df
Author: Zack Rusin <zackr at vmware.com>
Date: Tue Aug 6 20:24:26 2013 -0400
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 at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
---
src/gallium/auxiliary/draw/draw_context.c | 1 +
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 af9caee..2dc6772 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);
}
More information about the mesa-commit
mailing list