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/winsys/i915/drm/i915_drm_api.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/gallium/winsys/i915') diff --git a/src/gallium/winsys/i915/drm/i915_drm_api.c b/src/gallium/winsys/i915/drm/i915_drm_api.c index 5dfd5a7879..b95df40e86 100644 --- a/src/gallium/winsys/i915/drm/i915_drm_api.c +++ b/src/gallium/winsys/i915/drm/i915_drm_api.c @@ -49,21 +49,11 @@ i915_drm_winsys_destroy(struct i915_winsys *iws) } static struct pipe_screen * -i915_drm_create_screen(struct drm_api *api, int drmFD, - struct drm_create_screen_arg *arg) +i915_drm_create_screen(struct drm_api *api, int drmFD) { struct i915_drm_winsys *idws; unsigned int deviceID; - if (arg != NULL) { - switch(arg->mode) { - case DRM_CREATE_NORMAL: - break; - default: - return NULL; - } - } - idws = CALLOC_STRUCT(i915_drm_winsys); if (!idws) return NULL; -- cgit v1.2.3