mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
meson: simplify the gbm option code, and avoid changing types
v2: drop gallium comment (Dylan) Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
parent
a549da877b
commit
76e8d61999
1 changed files with 7 additions and 9 deletions
16
meson.build
16
meson.build
|
|
@ -294,16 +294,14 @@ if not (with_dri or with_gallium or with_glx == 'xlib' or with_glx == 'gallium-x
|
|||
with_shared_glapi = false
|
||||
endif
|
||||
|
||||
with_gbm = get_option('gbm')
|
||||
if with_gbm == 'auto' and with_dri # TODO: or gallium
|
||||
with_gbm = system_has_kms_drm
|
||||
elif with_gbm == 'true'
|
||||
if not system_has_kms_drm
|
||||
error('GBM only supports DRM/KMS platforms')
|
||||
endif
|
||||
with_gbm = true
|
||||
_gbm = get_option('gbm')
|
||||
if _gbm == 'auto'
|
||||
with_gbm = system_has_kms_drm and with_dri
|
||||
else
|
||||
with_gbm = false
|
||||
with_gbm = _gbm == 'true'
|
||||
endif
|
||||
if with_gbm and not system_has_kms_drm
|
||||
error('GBM only supports DRM/KMS platforms')
|
||||
endif
|
||||
|
||||
_egl = get_option('egl')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue