summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/nv40/nv40_draw.c
blob: 6ad2b66cce83ae1e4fef69569a418989a02a8abe (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
63
64
65
66
67
68
69
70
#include "pipe/draw/draw_private.h"
#include "pipe/p_util.h"

#include "nv40_context.h"

struct nv40_draw_stage {
	struct draw_stage draw;
	struct nv40_context *nv40;
};

static void
nv40_draw_begin(struct draw_stage *draw)
{
	NOUVEAU_ERR("\n");
}

static void
nv40_draw_end(struct draw_stage *draw)
{
	NOUVEAU_ERR("\n");
}

static void
nv40_draw_point(struct draw_stage *draw, struct prim_header *prim)
{
	NOUVEAU_ERR("\n");
}

static void
nv40_draw_line(struct draw_stage *draw, struct prim_header *prim)
{
	NOUVEAU_ERR("\n");
}

static void
nv40_draw_tri(struct draw_stage *draw, struct prim_header *prim)
{
	NOUVEAU_ERR("\n");
}

static void
nv40_draw_reset_stipple_counter(struct draw_stage *draw)
{
	NOUVEAU_ERR("\n");
}

static void
nv40_draw_destroy(struct draw_stage *draw)
{
	free(draw);
}

struct draw_stage *
nv40_draw_render_stage(struct nv40_context *nv40)
{
	struct nv40_draw_stage *nv40draw = CALLOC_STRUCT(nv40_draw_stage);

	nv40draw->nv40 = nv40;
	nv40draw->draw.draw = nv40->draw;
	nv40draw->draw.begin = nv40_draw_begin;
	nv40draw->draw.point = nv40_draw_point;
	nv40draw->draw.line = nv40_draw_line;
	nv40draw->draw.tri = nv40_draw_tri;
	nv40draw->draw.end = nv40_draw_end;
	nv40draw->draw.reset_stipple_counter = nv40_draw_reset_stipple_counter;
	nv40draw->draw.destroy = nv40_draw_destroy;

	return &nv40draw->draw;
}