diff options
author | Dave Airlie <[email protected]> | 2012-09-15 13:22:30 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-09-15 18:04:09 +1000 |
commit | 72f657c95056ef9848ffd28b17c9b4c026470a60 (patch) | |
tree | 4f0c4542dfcd4851b52729b18ae8d2f6ad7ab31f /src/mesa | |
parent | ee9f5766378e3f4fbaf41e8c4d037b66793c1077 (diff) |
vbo: add a prefix to count_tessellated_primitives
Just to make it consistent with the rest of vbo, since it would
be an exported symbol anyways.
Reviewed-by: Matt Turner <[email protected]>
Acked-by: Kenneth Graunke <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 2 | ||||
-rw-r--r-- | src/mesa/vbo/vbo.h | 2 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_exec.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 43657704070..a09f555d1ac 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -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) { diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h index eb06bf9b5ac..e0584973f9e 100644 --- a/src/mesa/vbo/vbo.h +++ b/src/mesa/vbo/vbo.h @@ -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, diff --git a/src/mesa/vbo/vbo_exec.c b/src/mesa/vbo/vbo_exec.c index fd5e0f8911b..0763f0d4d58 100644 --- a/src/mesa/vbo/vbo_exec.c +++ b/src/mesa/vbo/vbo_exec.c @@ -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) { |