Home | History | Annotate | Download | only in draw

Lines Matching refs:stage

66    struct draw_stage stage;  /**< base class */
83 widepoint_stage( struct draw_stage *stage )
85 return (struct widepoint_stage *)stage;
97 const struct draw_context *draw = wide->stage.draw;
120 static void widepoint_point( struct draw_stage *stage,
123 const struct widepoint_stage *wide = widepoint_stage(stage);
124 const unsigned pos = draw_current_shader_position_output(stage->draw);
125 const boolean sprite = (boolean) stage->draw->rasterizer->point_quad_rasterization;
132 struct vertex_header *v0 = dup_vert(stage, header->v[0], 0);
133 struct vertex_header *v1 = dup_vert(stage, header->v[0], 1);
134 struct vertex_header *v2 = dup_vert(stage, header->v[0], 2);
135 struct vertex_header *v3 = dup_vert(stage, header->v[0], 3);
183 stage->next->tri( stage->next, &tri );
188 stage->next->tri( stage->next, &tri );
193 widepoint_first_point(struct draw_stage *stage,
196 struct widepoint_stage *wide = widepoint_stage(stage);
197 struct draw_context *draw = stage->draw;
220 stage->point = widepoint_point;
223 stage->point = draw_pipe_passthrough_point;
274 stage->point( stage, header );
278 static void widepoint_flush( struct draw_stage *stage, unsigned flags )
280 struct draw_context *draw = stage->draw;
283 stage->point = widepoint_first_point;
284 stage->next->flush( stage->next, flags );
297 static void widepoint_reset_stipple_counter( struct draw_stage *stage )
299 stage->next->reset_stipple_counter( stage->next );
303 static void widepoint_destroy( struct draw_stage *stage )
305 draw_free_temp_verts( stage );
306 FREE( stage );
316 wide->stage.draw = draw;
317 wide->stage.name = "wide-point";
318 wide->stage.next = NULL;
319 wide->stage.point = widepoint_first_point;
320 wide->stage.line = draw_pipe_passthrough_line;
321 wide->stage.tri = draw_pipe_passthrough_tri;
322 wide->stage.flush = widepoint_flush;
323 wide->stage.reset_stipple_counter = widepoint_reset_stipple_counter;
324 wide->stage.destroy = widepoint_destroy;
326 if (!draw_alloc_temp_verts( &wide->stage, 4 ))
329 return &wide->stage;
333 wide->stage.destroy( &wide->stage );