aboutsummaryrefslogtreecommitdiffstats
path: root/drmtools.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-31 19:22:23 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-03-31 19:22:23 +0200
commit677fee9d0277c990e19760e1543ed07ed5115a07 (patch)
treebc847b14c279a1e6051d936afd0ee66cec00ca9b /drmtools.h
parent6721e3612de2c9a3f7b6f94be6599ccb0e0eaa88 (diff)
downloadfbida-677fee9d0277c990e19760e1543ed07ed5115a07.tar.gz
opengl renderer
Diffstat (limited to 'drmtools.h')
-rw-r--r--drmtools.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drmtools.h b/drmtools.h
index cbb6afb..0def894 100644
--- a/drmtools.h
+++ b/drmtools.h
@@ -1,2 +1,17 @@
+#include <xf86drm.h>
+#include <xf86drmMode.h>
+
+/* internal */
+extern int drm_fd;
+extern drmModeEncoder *drm_enc;
+extern drmModeModeInfo *drm_mode;
+extern drmModeConnector *drm_conn;
+void drm_cleanup_display(void);
+int drm_init_dev(const char *dev, const char *output);
+
+/* drmtools.c */
gfxstate *drm_init(const char *device, const char *output, bool pageflip);
void drm_info(const char *device);
+
+/* drmtools-egl.c */
+gfxstate *drm_init_egl(const char *device, const char *output);