aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include/state_tracker/xlibsw_api.h
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-02-13 15:24:16 +0000
committerEmil Velikov <[email protected]>2014-02-22 03:26:28 +0000
commit4f37e52f374b8b1d7177634dc09ab71e30e1779d (patch)
tree85f13d7c8ac044eb01628de73c0316f298f15922 /src/gallium/include/state_tracker/xlibsw_api.h
parentb4e8572bca60928c297e2b913ea1059aef104b98 (diff)
winsys/xlib: move xlib_create_sw_winsys within the winsys
v2: Rebase on top of vl_winsys_xsp.c removal Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Jakob Bornecrantz <[email protected]> (v1)
Diffstat (limited to 'src/gallium/include/state_tracker/xlibsw_api.h')
-rw-r--r--src/gallium/include/state_tracker/xlibsw_api.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gallium/include/state_tracker/xlibsw_api.h b/src/gallium/include/state_tracker/xlibsw_api.h
new file mode 100644
index 00000000000..930127981eb
--- /dev/null
+++ b/src/gallium/include/state_tracker/xlibsw_api.h
@@ -0,0 +1,19 @@
+#ifndef XLIB_SW_WINSYS_H
+#define XLIB_SW_WINSYS_H
+
+#include "state_tracker/sw_winsys.h"
+#include <X11/Xlib.h>
+
+
+/* This is what the xlib software winsys expects to find in the
+ * "private" field of flush_frontbuffers().
+ *
+ * Xlib-based state trackers somehow need to know this.
+ */
+struct xlib_drawable {
+ Visual *visual;
+ int depth;
+ Drawable drawable;
+};
+
+#endif