diff options
author | Christian König <deathsimple@vodafone.de> | 2011-03-05 16:36:38 +0100 |
---|---|---|
committer | Christian König <deathsimple@vodafone.de> | 2011-03-05 16:36:38 +0100 |
commit | 4ea38176028a6ecfc6ed195f64429b6b34279359 (patch) | |
tree | c567454d40f23d9c1cc824244fc22e4f2836169b /src/gallium/auxiliary/vl/vl_vertex_buffers.h | |
parent | 199034a3cc46e09e7a325690ac5b2b097e90249f (diff) |
[g3dvl] use instanced drawing to reduce the vertex buffer payload
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_vertex_buffers.h')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_vertex_buffers.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/vl/vl_vertex_buffers.h b/src/gallium/auxiliary/vl/vl_vertex_buffers.h index b8e8766ec5..ca06abe202 100644 --- a/src/gallium/auxiliary/vl/vl_vertex_buffers.h +++ b/src/gallium/auxiliary/vl/vl_vertex_buffers.h @@ -57,16 +57,12 @@ static inline void vl_vb_add_block(struct vl_vertex_buffer *buffer, void *elements) { void *pos; - unsigned i; assert(buffer); pos = buffer->vectors + buffer->num_verts * buffer->stride; - for(i = 0; i < 4; ++i) { - memcpy(pos, elements, buffer->stride); - pos += buffer->stride; - buffer->num_verts++; - } + memcpy(pos, elements, buffer->stride); + buffer->num_verts++; } void vl_vb_unmap(struct vl_vertex_buffer *buffer, struct pipe_context *pipe); |