Mesa (master): llvmpipe: make sure state is up to date before getting vertex layout/info

Brian Paul brianp at kemper.freedesktop.org
Fri Apr 16 16:02:06 UTC 2010


Module: Mesa
Branch: master
Commit: b7bd4b85f320ca50d924c23115eb56720a0de27f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b7bd4b85f320ca50d924c23115eb56720a0de27f

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Apr 15 16:42:25 2010 -0600

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.

---

 src/gallium/drivers/llvmpipe/lp_setup_vbuf.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c b/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
index d7336d8..a401275 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
@@ -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;
 }
 




More information about the mesa-commit mailing list