summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.h
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-02-16 17:23:12 +1100
committerBen Skeggs <skeggsb@gmail.com>2008-02-16 17:23:12 +1100
commit26add9288c88108e3485ffc57c51ea9bdc0ee719 (patch)
tree925c82d660e68ec0022c67a0b970b41cc98e6b52 /src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.h
parent87e3301533aa4d3e6e98db139887ebba3d217f7d (diff)
nouveau: match gallium code reorginisation.
That was... fun..
Diffstat (limited to 'src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.h')
-rw-r--r--src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.h b/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.h
new file mode 100644
index 0000000000..6a03ac0d77
--- /dev/null
+++ b/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.h
@@ -0,0 +1,34 @@
+#ifndef NOUVEAU_PIPE_WINSYS_H
+#define NOUVEAU_PIPE_WINSYS_H
+
+#include "pipe/p_context.h"
+#include "pipe/p_winsys.h"
+#include "nouveau_context.h"
+
+struct nouveau_pipe_buffer {
+ struct pipe_buffer base;
+ struct nouveau_bo *bo;
+};
+
+static inline struct nouveau_pipe_buffer *
+nouveau_buffer(struct pipe_buffer *buf)
+{
+ return (struct nouveau_pipe_buffer *)buf;
+}
+
+struct nouveau_pipe_winsys {
+ struct pipe_winsys pws;
+
+ struct nouveau_context *nv;
+};
+
+extern struct pipe_winsys *
+nouveau_create_pipe_winsys(struct nouveau_context *nv);
+
+struct pipe_context *
+nouveau_create_softpipe(struct nouveau_context *nv);
+
+struct pipe_context *
+nouveau_pipe_create(struct nouveau_context *nv);
+
+#endif