projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da1a74f
)
draw: use the vertex size
author
Zack Rusin
<zackr@vmware.com>
Fri, 2 Aug 2013 05:48:36 +0000
(
01:48
-0400)
committer
Zack Rusin
<zackr@vmware.com>
Sat, 3 Aug 2013 00:11:18 +0000
(20:11 -0400)
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>
src/gallium/auxiliary/draw/draw_pipe_vbuf.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
b/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
index d3b38eb2df6fa3072ca3a77eb1bbccce4aa916cc..092440eb406a7b8fa675f89ba6f063ccd7c82af8 100644
(file)
--- 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->v
info->size * 4
;
+ hw_key.output_stride = vbuf->v
ertex_size
;
/* Don't bother with caching at this stage:
*/