Mesa (staging/20.1): panfrost: don't always build bifrost_compiler

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun May 10 22:29:12 UTC 2020


Module: Mesa
Branch: staging/20.1
Commit: 096e06c56aaed4fb43ba5c35694e815d5740e29d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=096e06c56aaed4fb43ba5c35694e815d5740e29d

Author: Qiang Yu <yuq825 at gmail.com>
Date:   Fri Apr 24 16:20:25 2020 +0800

panfrost: don't always build bifrost_compiler

src/panfrost/shared is shared with lima driver, build
bifrost_compiler for lima driver is meaningless and
get link error when only lima driver is enabled.

So only build bifrost_compiler when configued with:
  meson -Dtools=panfrost

Fixes: ec2a59cd7aa4 "panfrost: Move non-Gallium files outside of Gallium"
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Signed-off-by: Qiang Yu <yuq825 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4960>
(cherry picked from commit 07b0fbea92a66499ef7c0f9b748b1034831201b1)

---

 .pick_status.json        | 2 +-
 meson_options.txt        | 2 +-
 src/panfrost/meson.build | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index 5d618f93f86..31a2f7c20a5 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -193,7 +193,7 @@
         "description": "panfrost: don't always build bifrost_compiler",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 0,
+        "resolution": 1,
         "master_sha": null,
         "because_sha": "ec2a59cd7aa42652645e76e29a72335370c80e50"
     },
diff --git a/meson_options.txt b/meson_options.txt
index d243997902f..ab43150669b 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -332,7 +332,7 @@ option(
   'tools',
   type : 'array',
   value : [],
-  choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'all'],
+  choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'all'],
   description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
 )
 option(
diff --git a/src/panfrost/meson.build b/src/panfrost/meson.build
index 68442fd3790..80adf9d1cd5 100644
--- a/src/panfrost/meson.build
+++ b/src/panfrost/meson.build
@@ -66,5 +66,5 @@ bifrost_compiler = executable(
     libpanfrost_encoder,
     libpanfrost_midgard, # references disassemble_midgard...
   ],
-  build_by_default : true
+  build_by_default : with_tools.contains('panfrost')
 )



More information about the mesa-commit mailing list