diff options
author | Eric Engestrom <[email protected]> | 2017-12-07 16:04:14 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-01-25 10:10:04 +0000 |
commit | 57b0ccd178bca2ad34f9f02f07ca5a7db9cbeccc (patch) | |
tree | 9679bca93a2fcad969555e4cf6875dcf7dca7a97 /meson.build | |
parent | 513c2263cbff45edb105c7b46e58f316e06746ab (diff) |
meson: simplify dri3 logic
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/meson.build b/meson.build index 8a814a596cc..bc5996992a3 100644 --- a/meson.build +++ b/meson.build @@ -353,15 +353,9 @@ endif with_dri2 = (with_dri or with_any_vk) and with_dri_platform == 'drm' with_dri3 = get_option('dri3') if with_dri3 == 'auto' - if system_has_kms_drm and with_dri2 - with_dri3 = true - else - with_dri3 = false - endif -elif with_dri3 == 'true' - with_dri3 = true + with_dri3 = system_has_kms_drm and with_dri2 else - with_dri3 = false + with_dri3 = with_dri3 == 'true' endif if with_any_vk and (with_platform_x11 and not with_dri3) |