summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2021-06-14 13:09:45 +1000
committerMarge Bot <eric+marge@anholt.net>2021-06-23 06:42:24 +0000
commit17a1cc616371d5239498386fa6850df536ad1fe4 (patch)
treeac8dc0e020fcef08aa124ad6577262d71a86bccf /src
parentec7e26234901359a694b54f72e7ac78f00b6ab60 (diff)
meson/crocus: add prefer-crocus option.
This just allows picking crocus without having to set the env var. Acked-by: Alyssa Rosenzweig <alyssa@collabora.com> Acked-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11353>
Diffstat (limited to 'src')
-rw-r--r--src/loader/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/loader/meson.build b/src/loader/meson.build
index 57a93c3aa17..37cd44c3cdf 100644
--- a/src/loader/meson.build
+++ b/src/loader/meson.build
@@ -45,6 +45,10 @@ if with_gallium_iris and get_option('prefer-iris')
loader_c_args += ['-DPREFER_IRIS']
endif
+if with_gallium_crocus and get_option('prefer-crocus')
+ loader_c_args += ['-DPREFER_CROCUS']
+endif
+
libloader = static_library(
'loader',
['loader_dri_helper.c', 'loader.c', 'pci_id_driver_map.c'],