summaryrefslogtreecommitdiff
path: root/compositor/compositor-openwfd.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-04-28 21:29:59 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-04-28 21:36:01 +0200
commite28f84b7d8753e500475f16502ef484c77a16f8b (patch)
tree68a859bfe2a86e6591c23a598f5dcf7532fda24e /compositor/compositor-openwfd.c
parent7d36664c0d07bf664656c0ea962841236e4f3ac1 (diff)
compositor-openwfd: Use wfd_device_id as drm fd
owfdrm uses non-0 (0 == WFD_INVALID_DEVICE_ID) fd's as wfd_device_ids. This is not standardized, but also not invalid.
Diffstat (limited to 'compositor/compositor-openwfd.c')
-rw-r--r--compositor/compositor-openwfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compositor/compositor-openwfd.c b/compositor/compositor-openwfd.c
index e8862a0..a0957dd 100644
--- a/compositor/compositor-openwfd.c
+++ b/compositor/compositor-openwfd.c
@@ -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;