From b9706886dbc1fd2eb3c671a8ecd3670f7a680fb9 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 25 May 2010 18:58:33 +0100 Subject: drm_api: Remove type argument from create screen callback With the removal of DRI1 support there where no use of this argument, some drivers didn't even properly check it. --- src/gallium/drivers/identity/id_drm.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/gallium/drivers/identity/id_drm.c') diff --git a/src/gallium/drivers/identity/id_drm.c b/src/gallium/drivers/identity/id_drm.c index a9d41af18c7..15d01519f80 100644 --- a/src/gallium/drivers/identity/id_drm.c +++ b/src/gallium/drivers/identity/id_drm.c @@ -46,17 +46,13 @@ identity_drm_api(struct drm_api *_api) } static struct pipe_screen * -identity_drm_create_screen(struct drm_api *_api, int fd, - struct drm_create_screen_arg *arg) +identity_drm_create_screen(struct drm_api *_api, int fd) { struct identity_drm_api *id_api = identity_drm_api(_api); struct drm_api *api = id_api->api; struct pipe_screen *screen; - if (arg && arg->mode != DRM_CREATE_NORMAL) - return NULL; - - screen = api->create_screen(api, fd, arg); + screen = api->create_screen(api, fd); return identity_screen_create(screen); } -- cgit v1.2.3