Mesa (master): vbo: rename reset_attrfv() to vbo_reset_all_attr()

Brian Paul brianp at kemper.freedesktop.org
Thu Oct 20 15:49:49 UTC 2016


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Oct 13 14:21:46 2016 -0600

vbo: rename reset_attrfv() to vbo_reset_all_attr()

Use a better name.

Reviewed-by: Charmaine Lee <charmainel at vmware.com>

---

 src/mesa/vbo/vbo_exec_api.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c
index 6df8d88..c0a5bc0 100644
--- a/src/mesa/vbo/vbo_exec_api.c
+++ b/src/mesa/vbo/vbo_exec_api.c
@@ -57,7 +57,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define IMM_BUFFER_NAME 0xaabbccdd
 
 
-static void reset_attrfv( struct vbo_exec_context *exec );
+static void
+vbo_reset_all_attr(struct vbo_exec_context *exec);
 
 
 /**
@@ -304,7 +305,7 @@ vbo_exec_wrap_upgrade_vertex(struct vbo_exec_context *exec,
    if (!_mesa_inside_begin_end(ctx) &&
        !oldSize && lastcount > 8 && exec->vtx.vertex_size) {
       vbo_exec_copy_to_current( exec );
-      reset_attrfv( exec );
+      vbo_reset_all_attr(exec);
    }
 
    /* Fix up sizes:
@@ -630,7 +631,7 @@ vbo_exec_FlushVertices_internal(struct vbo_exec_context *exec, GLboolean unmap)
 
    if (exec->vtx.vertex_size) {
       vbo_exec_copy_to_current( exec );
-      reset_attrfv( exec );
+      vbo_reset_all_attr(exec);
    }
 }
 
@@ -1286,7 +1287,8 @@ vbo_reset_attr(struct vbo_exec_context *exec, GLuint attr)
    exec->vtx.active_sz[attr] = 0;
 }
 
-static void reset_attrfv( struct vbo_exec_context *exec )
+static void
+vbo_reset_all_attr(struct vbo_exec_context *exec)
 {
    while (exec->vtx.enabled) {
       const int i = u_bit_scan64(&exec->vtx.enabled);




More information about the mesa-commit mailing list