Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1
[mesa.git] / src / mesa / pipe / nv40 / nv40_draw.c
1 #include "pipe/draw/draw_private.h"
2 #include "pipe/p_util.h"
3
4 #include "nv40_context.h"
5
6 struct nv40_draw_stage {
7 struct draw_stage draw;
8 struct nv40_context *nv40;
9 };
10
11 static void
12 nv40_draw_point(struct draw_stage *draw, struct prim_header *prim)
13 {
14 NOUVEAU_ERR("\n");
15 }
16
17 static void
18 nv40_draw_line(struct draw_stage *draw, struct prim_header *prim)
19 {
20 NOUVEAU_ERR("\n");
21 }
22
23 static void
24 nv40_draw_tri(struct draw_stage *draw, struct prim_header *prim)
25 {
26 NOUVEAU_ERR("\n");
27 }
28
29 static void
30 nv40_draw_flush(struct draw_stage *draw, unsigned flags)
31 {
32 }
33
34 static void
35 nv40_draw_reset_stipple_counter(struct draw_stage *draw)
36 {
37 NOUVEAU_ERR("\n");
38 }
39
40 static void
41 nv40_draw_destroy(struct draw_stage *draw)
42 {
43 free(draw);
44 }
45
46 struct draw_stage *
47 nv40_draw_render_stage(struct nv40_context *nv40)
48 {
49 struct nv40_draw_stage *nv40draw = CALLOC_STRUCT(nv40_draw_stage);
50
51 nv40draw->nv40 = nv40;
52 nv40draw->draw.draw = nv40->draw;
53 nv40draw->draw.point = nv40_draw_point;
54 nv40draw->draw.line = nv40_draw_line;
55 nv40draw->draw.tri = nv40_draw_tri;
56 nv40draw->draw.flush = nv40_draw_flush;
57 nv40draw->draw.reset_stipple_counter = nv40_draw_reset_stipple_counter;
58 nv40draw->draw.destroy = nv40_draw_destroy;
59
60 return &nv40draw->draw;
61 }
62