diff options
author | Jakob Bornecrantz <[email protected]> | 2010-04-20 23:51:56 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-04-20 23:53:59 +0100 |
commit | fa2d84d2f78db09d88147276bc0f9b9c2d1586fe (patch) | |
tree | f89ed5ab114740bcb601f0ea61c9e70500cd34c0 /src/gallium/state_trackers/egl/x11 | |
parent | 71595a5f3f503fdb134bf394239516fed0c1ffa1 (diff) |
st/egl: No need to use drm_api argument struct
Diffstat (limited to 'src/gallium/state_trackers/egl/x11')
-rw-r--r-- | src/gallium/state_trackers/egl/x11/native_dri2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/egl/x11/native_dri2.c b/src/gallium/state_trackers/egl/x11/native_dri2.c index 20e1a0052ca..d37f66da07e 100644 --- a/src/gallium/state_trackers/egl/x11/native_dri2.c +++ b/src/gallium/state_trackers/egl/x11/native_dri2.c @@ -695,7 +695,6 @@ dri2_display_init_screen(struct native_display *ndpy) { struct dri2_display *dri2dpy = dri2_display(ndpy); const char *driver = dri2dpy->api->name; - struct drm_create_screen_arg arg; int fd; if (!x11_screen_support(dri2dpy->xscr, X11_SCREEN_EXTENSION_DRI2) || @@ -718,9 +717,7 @@ dri2_display_init_screen(struct native_display *ndpy) if (fd < 0) return FALSE; - memset(&arg, 0, sizeof(arg)); - arg.mode = DRM_CREATE_NORMAL; - dri2dpy->base.screen = dri2dpy->api->create_screen(dri2dpy->api, fd, &arg); + dri2dpy->base.screen = dri2dpy->api->create_screen(dri2dpy->api, fd, NULL); if (!dri2dpy->base.screen) { _eglLog(_EGL_WARNING, "failed to create DRM screen"); return FALSE; |