llvmpipe: make sure state is up to date before getting vertex layout/info

Some of the draw pipeline stages emit additional vertex attributes.
Without this change, we were getting stale vertex info that didn't
include the extra attributes.
This commit is contained in:
Brian Paul
2010-04-15 16:42:25 -06:00
parent 7d5da2370b
commit b7bd4b85f3

View File

@@ -60,6 +60,10 @@ static const struct vertex_info *
lp_setup_get_vertex_info(struct vbuf_render *vbr)
{
struct lp_setup_context *setup = lp_setup_context(vbr);
/* vertex size/info depends on the latest state */
lp_setup_update_state(setup);
return setup->vertex_info;
}