summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/pipe-loader/pipe_loader.h
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-02-10 20:19:20 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2014-02-22 03:26:29 +0000
commitcc3aeacab64a6928a903f1dbfeaa7c880a8de5a6 (patch)
tree23fc239f90ff596f94711037f0c8989fc4467e91 /src/gallium/auxiliary/pipe-loader/pipe_loader.h
parent6325fdd6cf69aeefdf54d5725ad1242844e4e2af (diff)
downloadexternal_mesa3d-cc3aeacab64a6928a903f1dbfeaa7c880a8de5a6.zip
external_mesa3d-cc3aeacab64a6928a903f1dbfeaa7c880a8de5a6.tar.gz
external_mesa3d-cc3aeacab64a6928a903f1dbfeaa7c880a8de5a6.tar.bz2
pipe-loader: introduce pipe_loader_sw_probe_xlib helper
Will be used in the upcoming patches. v2: handle xlib_create_sw_winsys failure, drop unneeded header Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> (v1)
Diffstat (limited to 'src/gallium/auxiliary/pipe-loader/pipe_loader.h')
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.h b/src/gallium/auxiliary/pipe-loader/pipe_loader.h
index ce2118f..315ab32 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader.h
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.h
@@ -35,6 +35,10 @@
#include "pipe/p_compiler.h"
+#ifdef HAVE_WINSYS_XLIB
+#include <X11/Xlib.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -100,6 +104,20 @@ pipe_loader_create_screen(struct pipe_loader_device *dev,
void
pipe_loader_release(struct pipe_loader_device **devs, int ndev);
+#ifdef HAVE_WINSYS_XLIB
+
+/**
+ * Initialize Xlib for an associated display.
+ *
+ * This function is platform-specific.
+ *
+ * \sa pipe_loader_probe
+ */
+bool
+pipe_loader_sw_probe_xlib(struct pipe_loader_device **devs, Display *display);
+
+#endif
+
/**
* Get a list of known software devices.
*