render/allocator/gbm: require GBM 21.1

Mesa 21.1 was released back in 2021. Let's require it so that we
can simplify our build and remove the workaround.
This commit is contained in:
Simon Ser 2025-05-01 18:42:26 +02:00 committed by Kenny Levinsen
parent 221b37355f
commit bb50c7a5a4
2 changed files with 1 additions and 33 deletions

View file

@ -13,15 +13,12 @@ wlr_files += files(
gbm = disabler()
if 'gbm' in allocators or 'auto' in allocators
gbm = dependency('gbm', version: '>=17.1.0', required: 'gbm' in allocators)
gbm = dependency('gbm', version: '>=21.1', required: 'gbm' in allocators)
endif
if gbm.found()
wlr_files += files('gbm.c')
wlr_deps += gbm
features += { 'gbm-allocator': true }
has = cc.has_function('gbm_bo_get_fd_for_plane', dependencies: [gbm])
internal_config.set10('HAVE_GBM_BO_GET_FD_FOR_PLANE', has)
endif
udmabuf = false