diff options
author | Jakob Bornecrantz <[email protected]> | 2010-04-14 23:03:51 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-04-16 10:18:05 +0100 |
commit | 53c57191c5f24d3620e2e4ce95dd12b5c6e9109b (patch) | |
tree | 358239c993fbeb6429e2a0f4de91a5d0528caf0c /src/gallium/targets | |
parent | 39c81dada01585a6030f03d215842a1a2ae87d86 (diff) |
st/drisw: Stop pretending to be drm_api
Reviewed-by: George Sapountzis <[email protected]>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/dri-swrast/swrast_drm_api.c | 44 |
1 files changed, 3 insertions, 41 deletions
diff --git a/src/gallium/targets/dri-swrast/swrast_drm_api.c b/src/gallium/targets/dri-swrast/swrast_drm_api.c index 63b935bb07b..e8d6d8069cc 100644 --- a/src/gallium/targets/dri-swrast/swrast_drm_api.c +++ b/src/gallium/targets/dri-swrast/swrast_drm_api.c @@ -83,31 +83,13 @@ swrast_create_screen(struct sw_winsys *winsys) return screen; } -static struct pipe_screen * -swrast_drm_create_screen(struct drm_api *api, - int drmFD, - struct drm_create_screen_arg *arg) +struct pipe_screen * +drisw_create_screen(struct drisw_loader_funcs *lf) { struct sw_winsys *winsys = NULL; struct pipe_screen *screen = NULL; - struct drisw_create_screen_arg *drisw; - - (void) drmFD; - - if (arg != NULL) { - switch(arg->mode) { - case DRM_CREATE_DRISW: - drisw = (struct drisw_create_screen_arg *)arg; - break; - default: - return NULL; - } - } - else { - return NULL; - } - winsys = dri_create_sw_winsys(drisw->lf); + winsys = dri_create_sw_winsys(lf); if (winsys == NULL) return NULL; @@ -124,24 +106,4 @@ fail: return NULL; } -static void -swrast_drm_api_destroy(struct drm_api *api) -{ - return; -} - -static struct drm_api swrast_drm_api = -{ - .name = "swrast", - .driver_name = "swrast", - .create_screen = swrast_drm_create_screen, - .destroy = swrast_drm_api_destroy, -}; - -struct drm_api * -drm_api_create() -{ - return &swrast_drm_api; -} - /* vim: set sw=3 ts=8 sts=3 expandtab: */ |