Lines Matching defs:stage
46 struct draw_stage stage; /**< This must be first (base class) */
56 static INLINE struct setup_stage *setup_stage( struct draw_stage *stage )
58 return (struct setup_stage *)stage;
128 emit_prim( struct draw_stage *stage,
133 struct i915_context *i915 = setup_stage(stage)->i915;
173 setup_tri( struct draw_stage *stage, struct prim_header *prim )
175 emit_prim( stage, prim, PRIM3D_TRILIST, 3 );
180 setup_line(struct draw_stage *stage, struct prim_header *prim)
182 emit_prim( stage, prim, PRIM3D_LINELIST, 2 );
187 setup_point(struct draw_stage *stage, struct prim_header *prim)
189 emit_prim( stage, prim, PRIM3D_POINTLIST, 1 );
193 static void setup_flush( struct draw_stage *stage, unsigned flags )
197 static void reset_stipple_counter( struct draw_stage *stage )
201 static void render_destroy( struct draw_stage *stage )
203 FREE( stage );
208 * Create a new primitive setup/render stage. This gets plugged into
216 setup->stage.draw = i915->draw;
217 setup->stage.point = setup_point;
218 setup->stage.line = setup_line;
219 setup->stage.tri = setup_tri;
220 setup->stage.flush = setup_flush;
221 setup->stage.reset_stipple_counter = reset_stipple_counter;
222 setup->stage.destroy = render_destroy;
224 return &setup->stage;