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