1 #include "state_tracker/drm_driver.h"
2 #include "target-helpers/inline_debug_helper.h"
3 #include "radeon/drm/radeon_drm_public.h"
4 #include "radeonsi/radeonsi_public.h"
5 
6 static struct pipe_screen *
create_screen(int fd)7 create_screen(int fd)
8 {
9    struct radeon_winsys *rw;
10    struct pipe_screen *screen;
11 
12    rw = radeon_drm_winsys_create(fd);
13    if (!rw)
14       return NULL;
15 
16    screen = radeonsi_screen_create(rw);
17    if (!screen)
18       return NULL;
19 
20    screen = debug_screen_wrap(screen);
21 
22    return screen;
23 }
24 
25 PUBLIC
26 DRM_DRIVER_DESCRIPTOR("radeonsi", "radeon", create_screen, NULL)
27