summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl/kms
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-04-20 23:51:56 +0100
committerJakob Bornecrantz <[email protected]>2010-04-20 23:53:59 +0100
commitfa2d84d2f78db09d88147276bc0f9b9c2d1586fe (patch)
treef89ed5ab114740bcb601f0ea61c9e70500cd34c0 /src/gallium/state_trackers/egl/kms
parent71595a5f3f503fdb134bf394239516fed0c1ffa1 (diff)
st/egl: No need to use drm_api argument struct
Diffstat (limited to 'src/gallium/state_trackers/egl/kms')
-rw-r--r--src/gallium/state_trackers/egl/kms/native_kms.c5
1 files changed, 1 insertions, 4 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);