mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 18:48:28 +02:00
meson: kmsro: require dri3 for X11
The current implementation in kmsro relies on buffer sharing using WINSYS_HANDLE_TYPE_FD, which in x11 is only used by default when dri3 is enabled. Since the current implementation will not work without it, we can prevent user error by checking that it is not disabled at configuration time. Closes #4861 Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11305>
This commit is contained in:
parent
bb1c06343d
commit
479bda7848
1 changed files with 4 additions and 0 deletions
|
|
@ -534,6 +534,10 @@ if with_dri
|
|||
endif
|
||||
endif
|
||||
|
||||
if with_gallium_kmsro and (with_platform_x11 and not with_dri3)
|
||||
error('kmsro requires dri3 for X11 support')
|
||||
endif
|
||||
|
||||
_vdpau = get_option('gallium-vdpau')
|
||||
if _vdpau == 'true'
|
||||
_vdpau = 'enabled'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue