diff options
author | Qiang Yu <Qiang.Yu@amd.com> | 2017-03-07 11:53:23 +0800 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-03-07 16:00:27 -0500 |
commit | 9232835bd16b6948442f7a4588fb9376782cb814 (patch) | |
tree | 4708b0c6159c2318c30c1b0d78a2da77c2053e76 /configure.ac | |
parent | d4b7e0eaa4b2e97ce1dec653a2ae7d9621fe1431 (diff) |
glamor: use drmGetDeviceNameFromFD2 when available
This is for glamor can support fd from DRM render node which is useful
for a render only DDX.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 110027dbd..ac11e6572 100644 --- a/configure.ac +++ b/configure.ac @@ -2166,6 +2166,9 @@ if test "x$GLAMOR" = xyes; then AC_MSG_ERROR([Glamor for Xorg requires $LIBGBM]) fi fi + + PKG_CHECK_MODULES(LIBDRM, "libdrm >= 2.4.74", + [AC_DEFINE(GLAMOR_HAS_DRM_NAME_FROM_FD_2, 1, [Have GLAMOR_HAS_DRM_NAME_FROM_FD_2])], []) fi AM_CONDITIONAL([GLAMOR_EGL], [test "x$GBM" = xyes]) |