summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2013-08-02 01:48:36 -0400
committerZack Rusin <zackr@vmware.com>2013-08-02 20:11:18 -0400
commit2e46a1dcb33618f2873ebaaeb3ffe238f11a31a3 (patch)
tree9bf338f48bed180df4c6d00812519ea1c865fcbf /src/gallium/auxiliary/draw
parentda1a74f6735ef41cbd4d565434c67ac1a99a240c (diff)
downloadexternal_mesa3d-2e46a1dcb33618f2873ebaaeb3ffe238f11a31a3.zip
external_mesa3d-2e46a1dcb33618f2873ebaaeb3ffe238f11a31a3.tar.gz
external_mesa3d-2e46a1dcb33618f2873ebaaeb3ffe238f11a31a3.tar.bz2
draw: use the vertex size
Instead of using the magical 4 use the above computed vertex size. Doesn't change the behavior, just makes the code a bit cleaner. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_vbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_vbuf.c b/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
index d3b38eb..092440e 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
@@ -250,7 +250,7 @@ vbuf_start_prim( struct vbuf_stage *vbuf, uint prim )
}
hw_key.nr_elements = vbuf->vinfo->num_attribs;
- hw_key.output_stride = vbuf->vinfo->size * 4;
+ hw_key.output_stride = vbuf->vertex_size;
/* Don't bother with caching at this stage:
*/