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