projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fe30fb
)
u_vbuf: don't upload user buffers if the driver supports them
author
Marek Olšák
<maraeo@gmail.com>
Thu, 19 Apr 2012 03:28:27 +0000
(
05:28
+0200)
committer
Marek Olšák
<maraeo@gmail.com>
Mon, 23 Apr 2012 23:39:22 +0000
(
01:39
+0200)
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 e2e0215404c39cf92b4037d837cc8d88502612ae..c25385fbf27822cbf034162e6a2918dd2d01f4f8 100644
(file)
--- a/
src/gallium/auxiliary/util/u_vbuf.c
+++ b/
src/gallium/auxiliary/util/u_vbuf.c
@@
-731,7
+731,7
@@
void u_vbuf_set_vertex_buffers(struct u_vbuf *mgr, unsigned count,
continue;
}
- if (vb->buffer->user_ptr) {
+ if (
!mgr->caps.user_vertex_buffers &&
vb->buffer->user_ptr) {
mgr->user_vb_mask |= 1 << i;
pipe_resource_reference(&real_vb->buffer, NULL);
continue;