From ea470eec86715cd2bc9aa86d36e6ea803d0d4017 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 12 Jul 2007 13:32:31 -0600 Subject: Rename prim_stage -> draw_stage --- src/mesa/pipe/draw/draw_cull.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/mesa/pipe/draw/draw_cull.c') diff --git a/src/mesa/pipe/draw/draw_cull.c b/src/mesa/pipe/draw/draw_cull.c index 1498874fcf..863686f150 100644 --- a/src/mesa/pipe/draw/draw_cull.c +++ b/src/mesa/pipe/draw/draw_cull.c @@ -39,18 +39,18 @@ struct cull_stage { - struct prim_stage stage; + struct draw_stage stage; GLuint mode; /**< one of PIPE_WINDING_x */ }; -static INLINE struct cull_stage *cull_stage( struct prim_stage *stage ) +static INLINE struct cull_stage *cull_stage( struct draw_stage *stage ) { return (struct cull_stage *)stage; } -static void cull_begin( struct prim_stage *stage ) +static void cull_begin( struct draw_stage *stage ) { struct cull_stage *cull = cull_stage(stage); @@ -60,7 +60,7 @@ static void cull_begin( struct prim_stage *stage ) } -static void cull_tri( struct prim_stage *stage, +static void cull_tri( struct draw_stage *stage, struct prim_header *header ) { /* Window coords: */ @@ -89,21 +89,21 @@ static void cull_tri( struct prim_stage *stage, } -static void cull_line( struct prim_stage *stage, +static void cull_line( struct draw_stage *stage, struct prim_header *header ) { stage->next->line( stage->next, header ); } -static void cull_point( struct prim_stage *stage, +static void cull_point( struct draw_stage *stage, struct prim_header *header ) { stage->next->point( stage->next, header ); } -static void cull_end( struct prim_stage *stage ) +static void cull_end( struct draw_stage *stage ) { stage->next->end( stage->next ); } @@ -112,11 +112,11 @@ static void cull_end( struct prim_stage *stage ) /** * Create a new polygon culling stage. */ -struct prim_stage *prim_cull( struct draw_context *draw ) +struct draw_stage *draw_cull_stage( struct draw_context *draw ) { struct cull_stage *cull = CALLOC_STRUCT(cull_stage); - prim_alloc_tmps( &cull->stage, 0 ); + draw_alloc_tmps( &cull->stage, 0 ); cull->stage.draw = draw; cull->stage.next = NULL; -- cgit v1.2.3