cf569ea62c89c0452897b5350202b894efceb9fe
[mesa.git] / src / gallium / targets / egl-nouveau / target.c
1
2 #include "target-helpers/inline_debug_helper.h"
3 #include "state_tracker/drm_driver.h"
4 #include "nouveau/drm/nouveau_drm_public.h"
5
6 static struct pipe_screen *
7 create_screen(int fd)
8 {
9 struct pipe_screen *screen;
10
11 screen = nouveau_drm_screen_create(fd);
12 if (!screen)
13 return NULL;
14
15 screen = debug_screen_wrap(screen);
16
17 return screen;
18 }
19
20 DRM_DRIVER_DESCRIPTOR("nouveau", "nouveau", create_screen)
21
22 /* A poor man's --whole-archive for EGL drivers */
23 void *_eglMain(void *);
24 void *_eglWholeArchive = (void *) _eglMain;