SUMMARY Before commit https://invent.kde.org/plasma/kwin/-/commit/7a48ec6e66f080e8d53fbd63ffcfecd40ecf628c#7a9874a60b0fcdb7da55e6a4fa50bf28a6bc8cf2_154_157 it was possible to be compiled against Mesa 18.3. After the commit it is not possible anymore as the line mention above returns undefined. STEPS TO REPRODUCE 1. Compile Kwin with Mesa 18.3 OBSERVED RESULT 'gbm_format_name_desc' undefined EXPECTED RESULT compiles fine SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.22.2 (available in About System) KDE Plasma Version: 5.22.2 KDE Frameworks Version: 5.83 Qt Version: 5.15.3 ADDITIONAL INFORMATION Reverting commit https://invent.kde.org/plasma/kwin/-/commit/7a48ec6e66f080e8d53fbd63ffcfecd40ecf628c#7a9874a60b0fcdb7da55e6a4fa50bf28a6bc8cf2 fixes the issue.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1134
Git commit f657826541521bdde95ba39f865078d56d675181 by Vlad Zahorodnii. Committed on 06/07/2021 at 05:58. Pushed by vladz into branch 'Plasma/5.22'. platforms/drm: Port away from gbm_format_get_name() gbm_format_get_name() is available in Mesa 19 and later, but some distros that ship Plasma 5.22 still have only Mesa 18.3. M +15 -6 src/plugins/platforms/drm/drm_buffer_gbm.cpp https://invent.kde.org/plasma/kwin/commit/f657826541521bdde95ba39f865078d56d675181