projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d5da23
)
llvmpipe: make sure state is up to date before getting vertex layout/info
author
Brian Paul
<brianp@vmware.com>
Thu, 15 Apr 2010 22:42:25 +0000
(16:42 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 16 Apr 2010 15:43:32 +0000
(09:43 -0600)
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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
b/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
index d7336d82b213fcb97af094ec4058fa1cb8b5a29e..a401275478464828a7ca58cb6a7480767c2fcef3 100644
(file)
--- 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;
}