st/mesa: fix incorrect RowStride computation
[mesa.git] / src / gallium / drivers / nv30 / nv30_draw.c
1 #include "draw/draw_pipe.h"
2
3 #include "nv30_context.h"
4
5 struct nv30_draw_stage {
6 struct draw_stage draw;
7 struct nv30_context *nv30;
8 };
9
10 static void
11 nv30_draw_point(struct draw_stage *draw, struct prim_header *prim)
12 {
13 NOUVEAU_ERR("\n");
14 }
15
16 static void
17 nv30_draw_line(struct draw_stage *draw, struct prim_header *prim)
18 {
19 NOUVEAU_ERR("\n");
20 }
21
22 static void
23 nv30_draw_tri(struct draw_stage *draw, struct prim_header *prim)
24 {
25 NOUVEAU_ERR("\n");
26 }
27
28 static void
29 nv30_draw_flush(struct draw_stage *draw, unsigned flags)
30 {
31 }
32
33 static void
34 nv30_draw_reset_stipple_counter(struct draw_stage *draw)
35 {
36 NOUVEAU_ERR("\n");
37 }
38
39 static void
40 nv30_draw_destroy(struct draw_stage *draw)
41 {
42 FREE(draw);
43 }
44
45 struct draw_stage *
46 nv30_draw_render_stage(struct nv30_context *nv30)
47 {
48 struct nv30_draw_stage *nv30draw = CALLOC_STRUCT(nv30_draw_stage);
49
50 nv30draw->nv30 = nv30;
51 nv30draw->draw.draw = nv30->draw;
52 nv30draw->draw.point = nv30_draw_point;
53 nv30draw->draw.line = nv30_draw_line;
54 nv30draw->draw.tri = nv30_draw_tri;
55 nv30draw->draw.flush = nv30_draw_flush;
56 nv30draw->draw.reset_stipple_counter = nv30_draw_reset_stipple_counter;
57 nv30draw->draw.destroy = nv30_draw_destroy;
58
59 return &nv30draw->draw;
60 }
61