diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-03-07 14:13:38 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-03-10 22:19:25 +0000 |
commit | 28cab948f50b1d67468edbd9c8e10d3d696155f5 (patch) | |
tree | 99a5e908bd5c22137e003b9edbcb77a69695e216 /src/intel_module.c | |
parent | e5f8118bdbc4655d987ab1c52e0a46fa85cc92c4 (diff) |
intel: Add support for server managed fds
In the post-modern world, the platform device nodes are handed to a
non-privileged Xserver by systemd/logind. We can then query the core for
our assigned fd rather than try to open the device for ourselves (which
would fail when trying to obtain DRM_MASTER status). A consequence is
that we then do not directly control DRM_MASTER status and must act as a
delegate of systemd.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/intel_module.c')
-rw-r--r-- | src/intel_module.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel_module.c b/src/intel_module.c index 51de62ad..75860be2 100644 --- a/src/intel_module.c +++ b/src/intel_module.c @@ -419,6 +419,12 @@ static Bool intel_driver_func(ScrnInfoPtr pScrn, #endif return TRUE; + +#if XORG_VERSION_CURRENT > XORG_VERSION_NUMERIC(1,15,99,902,0) + case SUPPORTS_SERVER_FDS: + return TRUE; +#endif + default: /* Unknown or deprecated function */ return FALSE; |