From 53c57191c5f24d3620e2e4ce95dd12b5c6e9109b Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 14 Apr 2010 23:03:51 +0100 Subject: st/drisw: Stop pretending to be drm_api Reviewed-by: George Sapountzis --- src/gallium/state_trackers/dri/sw/drisw.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gallium/state_trackers/dri') diff --git a/src/gallium/state_trackers/dri/sw/drisw.c b/src/gallium/state_trackers/dri/sw/drisw.c index 7f7d737f558..9edddf01b57 100644 --- a/src/gallium/state_trackers/dri/sw/drisw.c +++ b/src/gallium/state_trackers/dri/sw/drisw.c @@ -262,7 +262,6 @@ drisw_init_screen(__DRIscreen * sPriv) const __DRIconfig **configs; struct dri_screen *screen; struct pipe_screen *pscreen; - struct drisw_create_screen_arg arg; screen = CALLOC_STRUCT(dri_screen); if (!screen) @@ -275,10 +274,7 @@ drisw_init_screen(__DRIscreen * sPriv) sPriv->private = (void *)screen; sPriv->extensions = drisw_screen_extensions; - arg.base.mode = DRM_CREATE_DRISW; - arg.lf = &drisw_lf; - - pscreen = screen->api->create_screen(screen->api, screen->fd, &arg.base); + pscreen = drisw_create_screen(&drisw_lf); /* dri_init_screen_helper checks pscreen for us */ configs = dri_init_screen_helper(screen, pscreen, 32); -- cgit v1.2.3