From: Marek Olšák Date: Thu, 19 Apr 2012 03:28:27 +0000 (+0200) Subject: u_vbuf: don't upload user buffers if the driver supports them X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=634066946e265aa5d2628ddca16c6556d2091a66;p=mesa.git u_vbuf: don't upload user buffers if the driver supports them --- diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c index e2e0215404c..c25385fbf27 100644 --- 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;