diff options
author | Rob Clark <robdclark@chromium.org> | 2023-02-17 11:51:49 -0800 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-02-25 17:02:34 +0000 |
commit | 6a28986eb4d7c223725f0be5c776020065ac2a8d (patch) | |
tree | 2128c08d9e944486f4171df861d1e9c661c27b66 /meson_options.txt | |
parent | 407e4929de9a3e4eac17f8e203173b5c1f96bc33 (diff) |
tu+meson: Re-work KMD selection
Now that turnip can support multiple kernel-mode drivers in a single
build, re-work the meson option to have a single list of KMDs, rather
than special options to enable kgsl for turnip or virtio for gallium.
It is temporarily a bit awkward as gallium does not yet support kgsl
and turnip does not yet support virtio. But both of those are planned
or in-progress, so long term a single list is the most sensible option.
TODO freedreno/drm support to build with only virtio support.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21394>
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/meson_options.txt b/meson_options.txt index 0bd92d3916d..3b66f75ae83 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -198,19 +198,16 @@ option( 'will be built' ) +# Note that currently turnip supports msm and kgsl, while the gallium driver +# support msm and virtio. This is a temporary situation with virtio support +# for turnip and kgsl support for gallium planned/in-progress. option( - 'freedreno-kgsl', - type : 'boolean', - value : false, - description : 'use kgsl backend for freedreno vulkan driver', -) - -option( - 'freedreno-virtio', - type : 'boolean', - value : false, - description : 'use experimental virtio backend for freedreno (currently ' + - 'only gallium driver)', + 'freedreno-kmds', + type : 'array', + value : ['msm'], + choices : ['msm', 'kgsl', 'virtio'], + description : 'List of kernel-mode drivers to enable for freedreno ' + + 'gallium and vulkan driver', ) option( |