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