summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/sw
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-04-14 23:03:51 +0100
committerJakob Bornecrantz <[email protected]>2010-04-16 10:18:05 +0100
commit53c57191c5f24d3620e2e4ce95dd12b5c6e9109b (patch)
tree358239c993fbeb6429e2a0f4de91a5d0528caf0c /src/gallium/state_trackers/dri/sw
parent39c81dada01585a6030f03d215842a1a2ae87d86 (diff)
st/drisw: Stop pretending to be drm_api
Reviewed-by: George Sapountzis <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri/sw')
-rw-r--r--src/gallium/state_trackers/dri/sw/drisw.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/dri/sw/drisw.c b/src/gallium/state_trackers/dri/sw/drisw.c
index 7f7d737f558..9edddf01b57 100644
--- a/src/gallium/state_trackers/dri/sw/drisw.c
+++ b/src/gallium/state_trackers/dri/sw/drisw.c
@@ -262,7 +262,6 @@ drisw_init_screen(__DRIscreen * sPriv)
const __DRIconfig **configs;
struct dri_screen *screen;
struct pipe_screen *pscreen;
- struct drisw_create_screen_arg arg;
screen = CALLOC_STRUCT(dri_screen);
if (!screen)
@@ -275,10 +274,7 @@ drisw_init_screen(__DRIscreen * sPriv)
sPriv->private = (void *)screen;
sPriv->extensions = drisw_screen_extensions;
- arg.base.mode = DRM_CREATE_DRISW;
- arg.lf = &drisw_lf;
-
- pscreen = screen->api->create_screen(screen->api, screen->fd, &arg.base);
+ pscreen = drisw_create_screen(&drisw_lf);
/* dri_init_screen_helper checks pscreen for us */
configs = dri_init_screen_helper(screen, pscreen, 32);