1 #ifndef NOUVEAU_WINSYS_H
2 #define NOUVEAU_WINSYS_H
5 #include "util/u_simple_screen.h"
6 #include "pipe/p_defines.h"
8 #include "nouveau/nouveau_bo.h"
9 #include "nouveau/nouveau_channel.h"
10 #include "nouveau/nouveau_class.h"
11 #include "nouveau/nouveau_device.h"
12 #include "nouveau/nouveau_grobj.h"
13 #include "nouveau/nouveau_notifier.h"
14 #include "nouveau/nouveau_resource.h"
15 #include "nouveau/nouveau_pushbuf.h"
17 #define NOUVEAU_CAP_HW_VTXBUF (0xbeef0000)
18 #define NOUVEAU_CAP_HW_IDXBUF (0xbeef0001)
20 #define NOUVEAU_TEXTURE_USAGE_LINEAR (1 << 16)
22 #define NOUVEAU_BUFFER_USAGE_TEXTURE (1 << 16)
23 #define NOUVEAU_BUFFER_USAGE_ZETA (1 << 17)
24 #define NOUVEAU_BUFFER_USAGE_TRANSFER (1 << 18)
26 /* use along with GPU_WRITE for 2D-only writes */
27 #define NOUVEAU_BUFFER_USAGE_NO_RENDER (1 << 19)
29 extern struct pipe_screen *
30 nvfx_screen_create(struct pipe_winsys *ws, struct nouveau_device *);
32 extern struct pipe_screen *
33 nv50_screen_create(struct pipe_winsys *ws, struct nouveau_device *);