mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 09:20:02 +01:00
xwayland: Do not enable DRI3 without eventfd
DRI3 version 1.4 which supports explicit buffers synchronization relies on the eventfd interface. As result, building would fail with DRI3 enabled on platforms without the eventfd interface. Check for the availability of the sys/eventfd.h header and disable DRI3 support if missing. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1523>
This commit is contained in:
parent
a58352b985
commit
96bdc156a1
1 changed files with 5 additions and 1 deletions
|
|
@ -505,14 +505,18 @@ else
|
|||
build_dri2 = get_option('dri2') == 'true'
|
||||
endif
|
||||
|
||||
have_eventfd = cc.has_header('sys/eventfd.h')
|
||||
if get_option('dri3') == 'auto'
|
||||
build_dri3 = dri3proto_dep.found() and xshmfence_dep.found() and libdrm_dep.found()
|
||||
build_dri3 = dri3proto_dep.found() and xshmfence_dep.found() and libdrm_dep.found() and have_eventfd
|
||||
else
|
||||
build_dri3 = get_option('dri3') == 'true'
|
||||
if build_dri3
|
||||
if not xshmfence_dep.found()
|
||||
error('DRI3 requested, but xshmfence not found')
|
||||
endif
|
||||
if not have_eventfd
|
||||
error('DRI3 requested, but sys/eventfd.h not found')
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue