compositor-openwfd: Use wfd_device_id as drm fd
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 28 Apr 2011 19:29:59 +0000 (21:29 +0200)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 28 Apr 2011 19:36:01 +0000 (21:36 +0200)
owfdrm uses non-0 (0 == WFD_INVALID_DEVICE_ID) fd's as wfd_device_ids.
This is not standardized, but also not invalid.

compositor/compositor-openwfd.c

index e8862a0..a0957dd 100644 (file)
@@ -111,7 +111,7 @@ init_egl(struct wfd_compositor *ec)
                EGL_NONE
        };
 
-       fd = wfdDeviceGetDRMfd(ec->dev);
+       fd = wfdGetDeviceAttribi(ec->dev, WFD_DEVICE_ID);
        if (fd < 0)
                return -1;