[Mesa-dev] [PATCH 3/8] gallium/vl: Don't map vertex buffers on creation

Thomas Hellstrom thellstrom at vmware.com
Tue Feb 21 20:52:43 UTC 2017


It will cause multiple simultaneous maps of the same vertex buffer and
flushed-while-mapped warnings.

Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
 src/gallium/auxiliary/vl/vl_vertex_buffers.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/auxiliary/vl/vl_vertex_buffers.c b/src/gallium/auxiliary/vl/vl_vertex_buffers.c
index 13d3f8c..1721227 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:
-- 
2.5.0



More information about the mesa-dev mailing list