diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-21 04:23:05 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-21 04:23:05 +0000 |
commit | a09152815d99b8a68f7f5ed0e44bab39dd14a1e5 (patch) | |
tree | 2d0fdc70c25e62ac40fe0512a56b269564afb8f8 /lib/mesa/src/loader/meson.build | |
parent | 5141f851e7304b6ee32a98117c378cb814079903 (diff) |
Import Mesa 21.3.8
Diffstat (limited to 'lib/mesa/src/loader/meson.build')
-rw-r--r-- | lib/mesa/src/loader/meson.build | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/mesa/src/loader/meson.build b/lib/mesa/src/loader/meson.build index 927f4af11..15818c070 100644 --- a/lib/mesa/src/loader/meson.build +++ b/lib/mesa/src/loader/meson.build @@ -41,11 +41,19 @@ loader_c_args = [ '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path), ] -if get_option('prefer-iris') +_prefer_iris = get_option('prefer-iris') +if _prefer_iris == 'auto' + _prefer_iris = amber ? 'false' : 'true' +endif +if _prefer_iris == 'true' loader_c_args += ['-DPREFER_IRIS'] endif -if get_option('prefer-crocus') +_prefer_crocus = get_option('prefer-crocus') +if _prefer_crocus == 'auto' + _prefer_crocus = 'false' +endif +if _prefer_crocus == 'true' loader_c_args += ['-DPREFER_CROCUS'] endif |