summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-10 10:38:28 -0700
committerBrian <[email protected]>2008-01-10 11:25:25 -0700
commit3d9c84c1b88d30115682763d2762a3c2bf4e5ff3 (patch)
tree7f0f20c9ec091ca5ade1e51adc151ee85e9110fc /src
parentfd8b5ede950eb809165c783db2844130fb4c072d (diff)
comment about vertex data in emit_vertex()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/softpipe/sp_prim_vbuf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_prim_vbuf.c b/src/mesa/pipe/softpipe/sp_prim_vbuf.c
index 2cfdeb58090..e9bd4dd5e4b 100644
--- 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;