1 #include "draw/draw_private.h"
2 #include "pipe/p_util.h"
4 #include "nv50_context.h"
6 struct nv50_draw_stage
{
7 struct draw_stage draw
;
8 struct nv50_context
*nv50
;
12 nv50_draw_point(struct draw_stage
*draw
, struct prim_header
*prim
)
18 nv50_draw_line(struct draw_stage
*draw
, struct prim_header
*prim
)
24 nv50_draw_tri(struct draw_stage
*draw
, struct prim_header
*prim
)
30 nv50_draw_flush(struct draw_stage
*draw
, unsigned flags
)
35 nv50_draw_reset_stipple_counter(struct draw_stage
*draw
)
41 nv50_draw_render_stage(struct nv50_context
*nv50
)
43 struct nv50_draw_stage
*nv50draw
= CALLOC_STRUCT(nv50_draw_stage
);
45 nv50draw
->nv50
= nv50
;
46 nv50draw
->draw
.draw
= nv50
->draw
;
47 nv50draw
->draw
.point
= nv50_draw_point
;
48 nv50draw
->draw
.line
= nv50_draw_line
;
49 nv50draw
->draw
.tri
= nv50_draw_tri
;
50 nv50draw
->draw
.flush
= nv50_draw_flush
;
51 nv50draw
->draw
.reset_stipple_counter
= nv50_draw_reset_stipple_counter
;
53 return &nv50draw
->draw
;