render/gbm_allocator: add support for gbm_bo_get_fd_for_plane

See [1]. This allows us to remove the workaround for GBM API
limitations.

[1]: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5442
This commit is contained in:
Simon Ser 2021-04-06 11:36:15 +02:00
parent 9ca743f9fd
commit 66e100ffbf
2 changed files with 9 additions and 2 deletions

View file

@ -18,6 +18,9 @@ wlr_files += files(
'drm_dumb_allocator.c',
)
has = cc.has_function('gbm_bo_get_fd_for_plane', dependencies: [gbm])
add_project_arguments('-DHAS_GBM_BO_GET_FD_FOR_PLANE=@0@'.format(has.to_int()), language: 'c')
egl = dependency('egl', required: 'gles2' in renderers)
if egl.found()
wlr_deps += egl