diff options
author | Jakob Bornecrantz <[email protected]> | 2010-05-25 18:58:33 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-05-25 19:05:07 +0100 |
commit | b9706886dbc1fd2eb3c671a8ecd3670f7a680fb9 (patch) | |
tree | 1ff8b3814e22d553e895f0a4143692bffc96a525 /src/gallium/drivers | |
parent | 395b605e19d5357c97f2d7d45673a80cd2c729ef (diff) |
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.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/identity/id_drm.c | 8 | ||||
-rw-r--r-- | src/gallium/drivers/trace/tr_drm.c | 9 |
2 files changed, 4 insertions, 13 deletions
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); } diff --git a/src/gallium/drivers/trace/tr_drm.c b/src/gallium/drivers/trace/tr_drm.c index 9c7d39201a9..e6850332121 100644 --- a/src/gallium/drivers/trace/tr_drm.c +++ b/src/gallium/drivers/trace/tr_drm.c @@ -47,8 +47,7 @@ trace_drm_api(struct drm_api *_api) } static struct pipe_screen * -trace_drm_create_screen(struct drm_api *_api, int fd, - struct drm_create_screen_arg *arg) +trace_drm_create_screen(struct drm_api *_api, int fd) { struct trace_drm_api *tr_api = trace_drm_api(_api); struct drm_api *api = tr_api->api; @@ -56,11 +55,7 @@ trace_drm_create_screen(struct drm_api *_api, int fd, /* TODO trace call */ - if (arg && arg->mode != DRM_CREATE_NORMAL) - return NULL; - - screen = api->create_screen(api, fd, arg); - + screen = api->create_screen(api, fd); return trace_screen_create(rbug_screen_create(screen)); } |