diff options
author | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-04-14 21:28:12 +0100 |
---|---|---|
committer | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-04-16 10:17:31 +0100 |
commit | 39c81dada01585a6030f03d215842a1a2ae87d86 (patch) | |
tree | 8fce5b6861f86b0844c1d384ace7c7748ba447c1 /src/gallium/state_trackers/dri/common/dri_screen.c | |
parent | 6c954dd12871aae2c34854498eaf696b67e3680b (diff) |
st/dri: Refactor init code a bit
Reviewed-by: George Sapountzis <gsapountzis@gmail.com>
Diffstat (limited to 'src/gallium/state_trackers/dri/common/dri_screen.c')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_screen.c b/src/gallium/state_trackers/dri/common/dri_screen.c index 83616744ad..4bfbc6e80b 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; |