Lines Matching refs:gdrm
49 gallium_screen_create(struct gbm_gallium_drm_device *gdrm) in gallium_screen_create() argument
55 ret = pipe_loader_drm_probe_fd(&dev, gdrm->base.base.fd); in gallium_screen_create()
60 gdrm->screen = pipe_loader_create_screen(dev, get_library_search_path()); in gallium_screen_create()
61 if (gdrm->screen == NULL) { in gallium_screen_create()
62 debug_printf("failed to load driver: %s\n", gdrm->base.driver_name); in gallium_screen_create()
67 gdrm->driver = dev; in gallium_screen_create()
68 gdrm->base.driver_name = strdup(dev->driver_name); in gallium_screen_create()
73 gallium_screen_destroy(struct gbm_gallium_drm_device *gdrm) in gallium_screen_destroy() argument
75 FREE(gdrm->base.driver_name); in gallium_screen_destroy()
76 gdrm->screen->destroy(gdrm->screen); in gallium_screen_destroy()
77 pipe_loader_release((struct pipe_loader_device **)&gdrm->driver, 1); in gallium_screen_destroy()