From: Zack Rusin Date: Fri, 2 Aug 2013 05:48:36 +0000 (-0400) Subject: draw: use the vertex size X-Git-Tag: upstream/10.0.5~2030 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e46a1dcb33618f2873ebaaeb3ffe238f11a31a3;p=platform%2Fupstream%2Fmesa.git 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 Reviewed-by: Roland Scheidegger Reviewed-by: Jose Fonseca --- 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: */