1848b8605Smrg 2848b8605Smrg#include "target-helpers/inline_debug_helper.h" 3848b8605Smrg#include "state_tracker/drm_driver.h" 4848b8605Smrg#include "freedreno/drm/freedreno_drm_public.h" 5848b8605Smrg 6848b8605Smrgstatic struct pipe_screen * 7b8e80941Smrgcreate_screen(int fd, const struct pipe_screen_config *config) 8848b8605Smrg{ 9848b8605Smrg struct pipe_screen *screen; 10848b8605Smrg 11b8e80941Smrg screen = fd_drm_screen_create(fd, NULL); 12848b8605Smrg if (!screen) 13848b8605Smrg return NULL; 14848b8605Smrg 15848b8605Smrg screen = debug_screen_wrap(screen); 16848b8605Smrg 17848b8605Smrg return screen; 18848b8605Smrg} 19848b8605Smrg 20848b8605SmrgPUBLIC 21b8e80941SmrgDRM_DRIVER_DESCRIPTOR("msm", NULL, create_screen) 22