1 2#include "target-helpers/inline_debug_helper.h" 3#include "state_tracker/drm_driver.h" 4#include "freedreno/drm/freedreno_drm_public.h" 5 6static struct pipe_screen * 7create_screen(int fd, const struct pipe_screen_config *config) 8{ 9 struct pipe_screen *screen; 10 11 screen = fd_drm_screen_create(fd, NULL); 12 if (!screen) 13 return NULL; 14 15 screen = debug_screen_wrap(screen); 16 17 return screen; 18} 19 20PUBLIC 21DRM_DRIVER_DESCRIPTOR("msm", NULL, create_screen) 22