From 39c81dada01585a6030f03d215842a1a2ae87d86 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 14 Apr 2010 21:28:12 +0100 Subject: st/dri: Refactor init code a bit Reviewed-by: George Sapountzis --- src/gallium/state_trackers/dri/common/dri_screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/state_trackers/dri/common/dri_screen.c') diff --git a/src/gallium/state_trackers/dri/common/dri_screen.c b/src/gallium/state_trackers/dri/common/dri_screen.c index 83616744ad0..4bfbc6e80b7 100644 --- a/src/gallium/state_trackers/dri/common/dri_screen.c +++ b/src/gallium/state_trackers/dri/common/dri_screen.c @@ -327,10 +327,10 @@ dri_destroy_screen(__DRIscreen * sPriv) const __DRIconfig ** dri_init_screen_helper(struct dri_screen *screen, - struct drm_create_screen_arg *arg, + struct pipe_screen *pscreen, unsigned pixel_bits) { - screen->pipe_screen = screen->api->create_screen(screen->api, screen->fd, arg); + screen->pipe_screen = pscreen; if (!screen->pipe_screen) { debug_printf("%s: failed to create pipe_screen\n", __FUNCTION__); return NULL; -- cgit v1.2.3