Mesa (master): vbo: replace the comment on vbo_copy_vertices()

Brian Paul brianp at kemper.freedesktop.org
Tue Oct 20 19:59:46 UTC 2015


Module: Mesa
Branch: master
Commit: 1637cec8f894f80937fe7c1b1f4fe4d245d6005b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1637cec8f894f80937fe7c1b1f4fe4d245d6005b

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Oct 15 21:21:56 2015 -0600

vbo: replace the comment on vbo_copy_vertices()

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
Reviewed-by: Sinclair Yeh <syeh at vmware.com>

---

 src/mesa/vbo/vbo_exec_draw.c |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c
index 174cbc3..781991b 100644
--- a/src/mesa/vbo/vbo_exec_draw.c
+++ b/src/mesa/vbo/vbo_exec_draw.c
@@ -64,9 +64,13 @@ vbo_exec_debug_verts( struct vbo_exec_context *exec )
 }
 
 
-/*
- * NOTE: Need to have calculated primitives by this point -- do it on the fly.
- * NOTE: Old 'parity' issue is gone.
+/**
+ * Copy zero, one or two vertices from the current vertex buffer into
+ * the temporary "copy" buffer.
+ * This is used when a single primitive overflows a vertex buffer and
+ * we need to continue the primitive in a new vertex buffer.
+ * The temporary "copy" buffer holds the vertices which need to get
+ * copied from the old buffer to the new one.
  */
 static GLuint
 vbo_copy_vertices( struct vbo_exec_context *exec )




More information about the mesa-commit mailing list