summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2020-07-05 16:49:44 +0100
committerMark Thompson <sw@jkqxz.net>2020-08-09 20:18:48 +0100
commitef934dba2d0caab7ab778c99c6005b8b9720eb27 (patch)
treea12840b1732d528234a36f287d6db311735b952b /configure
parentfa0b064cf2ff267feaa9405ffd0ca74280f274d9 (diff)
kmsgrab: Use GetFB2 if available
The most useful feature here is the ability to automatically extract the framebuffer format and modifiers. It also makes support for multi-plane framebuffers possible, though none are added to the format table in this patch. This requires libdrm 2.4.101 (from April 2020) to build, so it includes a configure check to allow compatibility with existing distributions. Even with libdrm support, it still won't do anything at runtime if you are running Linux < 5.7 (before June 2020).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index b137669dd3..8de1afcb99 100755
--- a/configure
+++ b/configure
@@ -2325,6 +2325,7 @@ HAVE_LIST="
$THREADS_LIST
$TOOLCHAIN_FEATURES
$TYPES_LIST
+ libdrm_getfb2
makeinfo
makeinfo_html
opencl_d3d11
@@ -6657,6 +6658,9 @@ test_cpp <<EOF && enable uwp && d3d11va_extralibs="-ldxgi -ld3d11"
#endif
EOF
+enabled libdrm &&
+ check_pkg_config libdrm_getfb2 libdrm "xf86drmMode.h" drmModeGetFB2
+
enabled vaapi &&
check_pkg_config vaapi "libva >= 0.35.0" "va/va.h" vaInitialize