summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.h
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2010-06-23 22:49:11 +0200
committerJakob Bornecrantz <jakob@vmware.com>2010-06-23 22:49:11 +0200
commit10e3b9f4d029df5c6c01a5d76c9085c48d82ac43 (patch)
treedaff07331bafbb6a2ad8ab80b77176bb67a4f2ca /src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.h
parent23a915e2cfbc95c018946155eb301ffad3a0d550 (diff)
nouveau: Rename winsys file
Diffstat (limited to 'src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.h')
-rw-r--r--src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.h b/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.h
new file mode 100644
index 0000000000..ae3ab17d74
--- /dev/null
+++ b/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.h
@@ -0,0 +1,30 @@
+#ifndef __NOUVEAU_DRM_WINSYS_H__
+#define __NOUVEAU_DRM_WINSYS_H__
+
+#include "state_tracker/drm_api.h"
+
+#include "util/u_simple_screen.h"
+
+#include "nouveau_dri.h"
+
+struct nouveau_winsys {
+ struct pipe_winsys base;
+
+ struct pipe_screen *pscreen;
+
+ struct pipe_surface *front;
+};
+
+static INLINE struct nouveau_winsys *
+nouveau_winsys(struct pipe_winsys *ws)
+{
+ return (struct nouveau_winsys *)ws;
+}
+
+static INLINE struct nouveau_winsys *
+nouveau_winsys_screen(struct pipe_screen *pscreen)
+{
+ return nouveau_winsys(pscreen->winsys);
+}
+
+#endif