gallium/vl: Don't map vertex buffers on creation
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 29 Feb 2016 12:33:39 +0000 (13:33 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 22 Feb 2017 09:17:51 +0000 (10:17 +0100)
It will cause multiple simultaneous maps of the same vertex buffer and
flushed-while-mapped warnings.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/auxiliary/vl/vl_vertex_buffers.c

index 13d3f8c30320d34857a8e26a795b707da06d4e4e..17212278f1a18884ddb694bbae43ceb83cad1157 100644 (file)
@@ -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: