From: Thomas Hellstrom Date: Mon, 29 Feb 2016 12:33:39 +0000 (+0100) Subject: gallium/vl: Don't map vertex buffers on creation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec8139e50c050e24885c9f015cafc2394b734db5;p=mesa.git gallium/vl: Don't map vertex buffers on creation It will cause multiple simultaneous maps of the same vertex buffer and flushed-while-mapped warnings. Signed-off-by: Thomas Hellstrom Reviewed-by: Brian Paul Reviewed-by: Christian König --- diff --git a/src/gallium/auxiliary/vl/vl_vertex_buffers.c b/src/gallium/auxiliary/vl/vl_vertex_buffers.c index 13d3f8c3032..17212278f1a 100644 --- a/src/gallium/auxiliary/vl/vl_vertex_buffers.c +++ b/src/gallium/auxiliary/vl/vl_vertex_buffers.c @@ -241,7 +241,6 @@ vl_vb_init(struct vl_vertex_buffer *buffer, struct pipe_context *pipe, goto error_mv; } - vl_vb_map(buffer, pipe); return true; error_mv: