summaryrefslogtreecommitdiff
path: root/src/gallium/targets/egl-i915/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/targets/egl-i915/target.c')
-rw-r--r--src/gallium/targets/egl-i915/target.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/targets/egl-i915/target.c b/src/gallium/targets/egl-i915/target.c
new file mode 100644
index 0000000000..fd68c4bd45
--- /dev/null
+++ b/src/gallium/targets/egl-i915/target.c
@@ -0,0 +1,8 @@
+
+#include "target-helpers/drm_api_compat.h"
+
+DRM_API_COMPAT_STRUCT("i915", "i915")
+
+/* A poor man's --whole-archive for EGL drivers */
+void *_eglMain(void *);
+void *_eglWholeArchive = (void *) _eglMain;