Signed-off-by: Eric Engestrom <eric.engestrom@xxxxxxxxxx> --- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 55ad207b6de349863be3..51f2a214e1d9715a053d 100644 --- a/meson.build +++ b/meson.build @@ -121,11 +121,13 @@ endif with_omap = false _omap = get_option('omap') -if _omap == 'true' - if not with_atomics - error('libdrm_omap requires atomics.') - endif - with_omap = true +if _omap == 'auto' + with_omap = with_atomics +else + with_omap = _omap == 'true' +endif +if with_omap and not with_atomics + error('libdrm_omap requires atomics.') endif with_freedreno = false -- Cheers, Eric _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel