vbo: add a prefix to count_tessellated_primitives
authorDave Airlie <airlied@gmail.com>
Sat, 15 Sep 2012 03:22:30 +0000 (13:22 +1000)
committerDave Airlie <airlied@gmail.com>
Sat, 15 Sep 2012 08:04:09 +0000 (18:04 +1000)
Just to make it consistent with the rest of vbo, since it would
be an exported symbol anyways.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_exec.c

index 43657704070e3be8b7d724e7f67847fd7ccd6f22..a09f555d1ac46a7650cad840160076e664293e6a 100644 (file)
@@ -381,7 +381,7 @@ static void
 brw_update_primitive_count(struct brw_context *brw,
                            const struct _mesa_prim *prim)
 {
-   uint32_t count = count_tessellated_primitives(prim);
+   uint32_t count = vbo_count_tessellated_primitives(prim);
    brw->sol.primitives_generated += count;
    if (brw->intel.ctx.TransformFeedback.CurrentObject->Active &&
        !brw->intel.ctx.TransformFeedback.CurrentObject->Paused) {
index eb06bf9b5acffecdbe3fa9126f6d8474a3895641..e0584973f9ee35be1f72f9956f754c08fbec2602 100644 (file)
@@ -156,7 +156,7 @@ void vbo_check_buffers_are_unmapped(struct gl_context *ctx);
 void vbo_bind_arrays(struct gl_context *ctx);
 
 size_t
-count_tessellated_primitives(const struct _mesa_prim *prim);
+vbo_count_tessellated_primitives(const struct _mesa_prim *prim);
 
 void
 vbo_sw_primitive_restart(struct gl_context *ctx,
index fd5e0f8911b40b86644bd69286d5c410018fd724..0763f0d4d585752ab845352ad314971c41e75067 100644 (file)
@@ -105,7 +105,7 @@ void vbo_exec_invalidate_state( struct gl_context *ctx, GLuint new_state )
  * PRIMITIVES_GENERATED and TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN queries.
  */
 size_t
-count_tessellated_primitives(const struct _mesa_prim *prim)
+vbo_count_tessellated_primitives(const struct _mesa_prim *prim)
 {
    size_t num_primitives;
    switch (prim->mode) {