projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd8b5ed
)
comment about vertex data in emit_vertex()
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 10 Jan 2008 17:38:28 +0000
(10:38 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 10 Jan 2008 18:25:25 +0000
(11:25 -0700)
src/mesa/pipe/softpipe/sp_prim_vbuf.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/softpipe/sp_prim_vbuf.c
b/src/mesa/pipe/softpipe/sp_prim_vbuf.c
index 2cfdeb5809033146ad9a686744dea171bc736ea7..e9bd4dd5e4b1ff1140c901a5db3d49aaac883840 100644
(file)
--- a/
src/mesa/pipe/softpipe/sp_prim_vbuf.c
+++ b/
src/mesa/pipe/softpipe/sp_prim_vbuf.c
@@
-120,6
+120,12
@@
static void emit_vertex( struct vbuf_stage *vbuf,
vertex->vertex_id = vbuf->nr_vertices++;
//vbuf->emit_vertex( vbuf->vertex_ptr, vertex );
+
+ /* Note: for softpipe, the vertex includes the vertex header info
+ * such as clip flags and clip coords. In the future when vbuf is
+ * always used, we could just copy the vertex attributes/data here.
+ * The sp_prim_setup.c code doesn't use any of the vertex header info.
+ */
memcpy(vbuf->vertex_ptr, vertex, vbuf->vertex_size);
vbuf->vertex_ptr += vbuf->vertex_size;