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 | |
parent | 71595a5f3f503fdb134bf394239516fed0c1ffa1 (diff) |
st/egl: No need to use drm_api argument struct
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/egl/kms/native_kms.c | 5 | ||||
-rw-r--r-- | src/gallium/state_trackers/egl/x11/native_dri2.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/gallium/state_trackers/egl/kms/native_kms.c b/src/gallium/state_trackers/egl/kms/native_kms.c index caf5628134d..cf7188dfdb7 100644 --- a/src/gallium/state_trackers/egl/kms/native_kms.c +++ b/src/gallium/state_trackers/egl/kms/native_kms.c @@ -692,7 +692,6 @@ static boolean kms_display_init_screen(struct native_display *ndpy) { struct kms_display *kdpy = kms_display(ndpy); - struct drm_create_screen_arg arg; int fd; fd = drmOpen(kdpy->api->driver_name, NULL); @@ -708,9 +707,7 @@ kms_display_init_screen(struct native_display *ndpy) } #endif - memset(&arg, 0, sizeof(arg)); - arg.mode = DRM_CREATE_NORMAL; - kdpy->base.screen = kdpy->api->create_screen(kdpy->api, fd, &arg); + kdpy->base.screen = kdpy->api->create_screen(kdpy->api, fd, NULL); if (!kdpy->base.screen) { _eglLog(_EGL_WARNING, "failed to create DRM screen"); drmClose(fd); 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; |