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 create_screen(int fd)6static struct pipe_screen *create_screen(int fd) 7 { 8 struct radeon_winsys *radeon; 9 struct pipe_screen *screen; 10 11 radeon = radeon_drm_winsys_create(fd); 12 if (!radeon) 13 return NULL; 14 15 screen = radeonsi_screen_create(radeon); 16 if (!screen) 17 return NULL; 18 19 screen = debug_screen_wrap(screen); 20 21 return screen; 22 } 23 24 DRM_DRIVER_DESCRIPTOR("radeonsi", "radeon", create_screen, NULL) 25