summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_winsys.h
blob: 4c3e08a43f5d8131ce78761580922c8fef1022d4 (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
#ifndef NOUVEAU_WINSYS_H
#define NOUVEAU_WINSYS_H

#include <stdint.h>
#include "pipe/internal/p_winsys_screen.h"
#include "pipe/p_defines.h"

#include "nouveau/nouveau_bo.h"
#include "nouveau/nouveau_channel.h"
#include "nouveau/nouveau_class.h"
#include "nouveau/nouveau_device.h"
#include "nouveau/nouveau_grobj.h"
#include "nouveau/nouveau_notifier.h"
#include "nouveau/nouveau_resource.h"
#include "nouveau/nouveau_pushbuf.h"

#define NOUVEAU_CAP_HW_VTXBUF (0xbeef0000)
#define NOUVEAU_CAP_HW_IDXBUF (0xbeef0001)

#define NOUVEAU_TEXTURE_USAGE_LINEAR (1 << 16)

#define NOUVEAU_BUFFER_USAGE_TEXTURE  (1 << 16)
#define NOUVEAU_BUFFER_USAGE_ZETA     (1 << 17)
#define NOUVEAU_BUFFER_USAGE_TRANSFER (1 << 18)

/* use along with GPU_WRITE for 2D-only writes */
#define NOUVEAU_BUFFER_USAGE_NO_RENDER (1 << 19)

extern struct pipe_screen *
nv04_screen_create(struct pipe_winsys *ws, struct nouveau_device *);

extern struct pipe_context *
nv04_create(struct pipe_screen *, unsigned pctx_id);

extern struct pipe_screen *
nv10_screen_create(struct pipe_winsys *ws, struct nouveau_device *);

extern struct pipe_context *
nv10_create(struct pipe_screen *, unsigned pctx_id);

extern struct pipe_screen *
nv20_screen_create(struct pipe_winsys *ws, struct nouveau_device *);

extern struct pipe_context *
nv20_create(struct pipe_screen *, unsigned pctx_id);

extern struct pipe_screen *
nv30_screen_create(struct pipe_winsys *ws, struct nouveau_device *);

extern struct pipe_context *
nv30_create(struct pipe_screen *, unsigned pctx_id);

extern struct pipe_screen *
nv40_screen_create(struct pipe_winsys *ws, struct nouveau_device *);

extern struct pipe_context *
nv40_create(struct pipe_screen *, unsigned pctx_id);

extern struct pipe_screen *
nv50_screen_create(struct pipe_winsys *ws, struct nouveau_device *);

extern struct pipe_context *
nv50_create(struct pipe_screen *, unsigned pctx_id);

#endif