Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1
[mesa.git] / src / mesa / drivers / dri / nouveau_winsys / nouveau_winsys_pipe.h
1 #ifndef NOUVEAU_PIPE_WINSYS_H
2 #define NOUVEAU_PIPE_WINSYS_H
3
4 #include "pipe/p_context.h"
5 #include "pipe/p_winsys.h"
6 #include "nouveau_context.h"
7
8 struct nouveau_pipe_buffer {
9 struct pipe_buffer base;
10 struct nouveau_bo *bo;
11 };
12
13 static inline struct nouveau_pipe_buffer *
14 nouveau_buffer(struct pipe_buffer *buf)
15 {
16 return (struct nouveau_pipe_buffer *)buf;
17 }
18
19 struct nouveau_pipe_winsys {
20 struct pipe_winsys pws;
21
22 struct nouveau_context *nv;
23 };
24
25 extern struct pipe_winsys *
26 nouveau_create_pipe_winsys(struct nouveau_context *nv);
27
28 struct pipe_context *
29 nouveau_create_softpipe(struct nouveau_context *nv);
30
31 struct pipe_context *
32 nouveau_pipe_create(struct nouveau_context *nv);
33
34 #endif