1 #include "draw/draw_private.h"
2 #include "pipe/p_util.h"
4 #include "nv50_context.h"
6 struct nv50_render_stage
{
7 struct draw_stage stage
;
8 struct nv50_context
*nv50
;
11 static INLINE
struct nv50_render_stage
*
12 nv50_render_stage(struct draw_stage
*stage
)
14 return (struct nv50_render_stage
*)stage
;
18 nv50_render_point(struct draw_stage
*stage
, struct prim_header
*prim
)
24 nv50_render_line(struct draw_stage
*stage
, struct prim_header
*prim
)
30 nv50_render_tri(struct draw_stage
*stage
, struct prim_header
*prim
)
36 nv50_render_flush(struct draw_stage
*stage
, unsigned flags
)
41 nv50_render_reset_stipple_counter(struct draw_stage
*stage
)
47 nv50_render_destroy(struct draw_stage
*stage
)
53 nv50_draw_render_stage(struct nv50_context
*nv50
)
55 struct nv50_render_stage
*rs
= CALLOC_STRUCT(nv50_render_stage
);
58 rs
->stage
.draw
= nv50
->draw
;
59 rs
->stage
.destroy
= nv50_render_destroy
;
60 rs
->stage
.point
= nv50_render_point
;
61 rs
->stage
.line
= nv50_render_line
;
62 rs
->stage
.tri
= nv50_render_tri
;
63 rs
->stage
.flush
= nv50_render_flush
;
64 rs
->stage
.reset_stipple_counter
= nv50_render_reset_stipple_counter
;