compositor-drm: Remove unnecessary libdrm defines
authorDaniel Stone <daniels@collabora.com>
Fri, 20 Jul 2018 10:06:19 +0000 (11:06 +0100)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 27 Jul 2018 16:20:25 +0000 (11:20 -0500)
commit8c9556c57d0f907e461e2c4ccf01155f0a7b1244
tree677106e5de9d56bc60630988830237b9995a9daf
parent3ea5437dbd07d9a94aebbb651d8f8eeacc8765bd
compositor-drm: Remove unnecessary libdrm defines

The backend begins with a series of #defines of libdrm tokens, in case
the libdrm we build against is too old.

Commit efdebbc4e82b ("configure.ac: bump libdrm requirement to 2.4.68")
did what it said on the box; since we now depend on a relatively modern
libdrm, we can get rid of most of our compatibility defines.

DRM_CAP_TIMESTAMP_MONOTONIC was added in libdrm 2.4.47 (f8f1f6e37ae2).
DRM_CLIENT_CAP_UNIVERSAL_PLANES was added in libdrm 2.4.55
(8fc62ca8ac01).
DRM_CAP_CURSOR_WIDTH and HEIGHT were added in libdrm 2.4.68
(cc9a53f076d4).

Remove these four fallback definitions.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Derek Foreman <derek.foreman.samsung@gmail.com>
libweston/compositor-drm.c