1 #ifndef NOUVEAU_WINSYS_H
2 #define NOUVEAU_WINSYS_H
5 #include "pipe/p_defines.h"
7 #include "nouveau/nouveau_bo.h"
8 #include "nouveau/nouveau_channel.h"
9 #include "nouveau/nouveau_class.h"
10 #include "nouveau/nouveau_device.h"
11 #include "nouveau/nouveau_grobj.h"
12 #include "nouveau/nouveau_notifier.h"
13 #include "nouveau/nouveau_resource.h"
14 #include "nouveau/nouveau_pushbuf.h"
16 #define NOUVEAU_CAP_HW_VTXBUF (0xbeef0000)
17 #define NOUVEAU_CAP_HW_IDXBUF (0xbeef0001)
19 static inline uint32_t
20 nouveau_screen_transfer_flags(unsigned pipe
)
24 if (pipe
& PIPE_TRANSFER_READ
)
25 flags
|= NOUVEAU_BO_RD
;
26 if (pipe
& PIPE_TRANSFER_WRITE
)
27 flags
|= NOUVEAU_BO_WR
;
28 if (pipe
& PIPE_TRANSFER_DISCARD
)
29 flags
|= NOUVEAU_BO_INVAL
;
30 if (pipe
& PIPE_TRANSFER_DONTBLOCK
)
31 flags
|= NOUVEAU_BO_NOWAIT
;
33 if (pipe
& PIPE_TRANSFER_UNSYNCHRONIZED
)
34 flags
|= NOUVEAU_BO_NOSYNC
;
39 extern struct pipe_screen
*
40 nvfx_screen_create(struct pipe_winsys
*ws
, struct nouveau_device
*);
42 extern struct pipe_screen
*
43 nv50_screen_create(struct pipe_winsys
*ws
, struct nouveau_device
*);