Skip to content

Bump libdrm version requirement and remove unecessary ifdef's

Leandro Ribeiro requested to merge leandrohrb/weston:bump_libdrm_req into master

There are some features that are available only if the user's libdrm version is not too old: format modifiers require at least libdrm 2.4.71, atomic API at least 2.4.78 and blob formats at least 2.4.83. Commit 1/2 bumps libdrm requirement to 2.4.83 (the oldest version that support these features). Major distributions already support libdrm 2.4.91, so it's safe to apply the commit. Here are some links that prove this:

Commit 2/2 removes #ifdef checks (for HAVE_DRM_ADDFB2_MODIFIERS, HAVE_DRM_ATOMIC and HAVE_DRM_FORMATS_BLOB) that are unnecessary for libdrm versions >= 2.4.83. Also, the checks to enable these flags are removed from libweston/backend-drm/meson.build. This makes the code cleaner and solves issue #250 (closed) ("Move #ifdef HAVE_DRM_ATOMIC code into new file").

Edited by Leandro Ribeiro

Merge request reports