diff options
author | Jakob Bornecrantz <[email protected]> | 2010-04-14 21:28:12 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-04-16 10:17:31 +0100 |
commit | 39c81dada01585a6030f03d215842a1a2ae87d86 (patch) | |
tree | 8fce5b6861f86b0844c1d384ace7c7748ba447c1 /src/gallium/state_trackers/dri/common | |
parent | 6c954dd12871aae2c34854498eaf696b67e3680b (diff) |
st/dri: Refactor init code a bit
Reviewed-by: George Sapountzis <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri/common')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_screen.c | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_screen.h | 2 |
2 files changed, 3 insertions, 3 deletions
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; diff --git a/src/gallium/state_trackers/dri/common/dri_screen.h b/src/gallium/state_trackers/dri/common/dri_screen.h index e77bce17ae9..8ab7d439191 100644 --- a/src/gallium/state_trackers/dri/common/dri_screen.h +++ b/src/gallium/state_trackers/dri/common/dri_screen.h @@ -104,7 +104,7 @@ dri_fill_st_visual(struct st_visual *stvis, struct dri_screen *screen, const __DRIconfig ** dri_init_screen_helper(struct dri_screen *screen, - struct drm_create_screen_arg *arg, + struct pipe_screen *pscreen, unsigned pixel_bits); void |