1 #ifndef NOUVEAU_PIPE_WINSYS_H
2 #define NOUVEAU_PIPE_WINSYS_H
4 #include "pipe/p_context.h"
5 #include "pipe/p_winsys.h"
6 #include "nouveau_context.h"
8 struct nouveau_pipe_buffer
{
9 struct pipe_buffer base
;
10 struct nouveau_bo
*bo
;
13 static inline struct nouveau_pipe_buffer
*
14 nouveau_buffer(struct pipe_buffer
*buf
)
16 return (struct nouveau_pipe_buffer
*)buf
;
19 struct nouveau_pipe_winsys
{
20 struct pipe_winsys pws
;
22 struct nouveau_context
*nv
;
25 extern struct pipe_winsys
*
26 nouveau_create_pipe_winsys(struct nouveau_context
*nv
);
29 nouveau_create_softpipe(struct nouveau_context
*nv
);
32 nouveau_pipe_create(struct nouveau_context
*nv
);