st/egl: Use correct driver_name field to get kernel driver name
authorJakob Bornecrantz <wallbraker@gmail.com>
Tue, 20 Apr 2010 22:51:22 +0000 (23:51 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Tue, 20 Apr 2010 22:53:59 +0000 (23:53 +0100)
src/gallium/state_trackers/egl/kms/native_kms.c

index 79645865f3b2dd69e0f5de3e4d117280783595ce..caf5628134deb5b003e45d8e8f861cdfcc50b9ba 100644 (file)
@@ -695,7 +695,7 @@ kms_display_init_screen(struct native_display *ndpy)
    struct drm_create_screen_arg arg;
    int fd;
 
-   fd = drmOpen(kdpy->api->name, NULL);
+   fd = drmOpen(kdpy->api->driver_name, NULL);
    if (fd < 0) {
       _eglLog(_EGL_WARNING, "failed to open DRM device");
       return FALSE;