projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
971750e
)
u_vbuf: avoid unnecessary update of the vertex elements
author
Vadim Girlin
<vadimgirlin@gmail.com>
Tue, 28 Aug 2012 14:01:13 +0000
(18:01 +0400)
committer
Vadim Girlin
<vadimgirlin@gmail.com>
Tue, 28 Aug 2012 14:01:13 +0000
(18:01 +0400)
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/auxiliary/util/u_vbuf.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_vbuf.c
b/src/gallium/auxiliary/util/u_vbuf.c
index
4141ba5
..
52db294
100644
(file)
--- a/
src/gallium/auxiliary/util/u_vbuf.c
+++ b/
src/gallium/auxiliary/util/u_vbuf.c
@@
-225,7
+225,9
@@
u_vbuf_set_vertex_elements_internal(struct u_vbuf *mgr, unsigned count,
}
assert(ve);
- pipe->bind_vertex_elements_state(pipe, ve->driver_cso);
+
+ if (ve != mgr->ve)
+ pipe->bind_vertex_elements_state(pipe, ve->driver_cso);
return ve;
}