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: ec2a59cd7a "panfrost: Move non-Gallium files outside of Gallium"
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4960>
(cherry picked from commit 07b0fbea92)
This commit is contained in:
Qiang Yu 2020-04-24 16:20:25 +08:00 committed by Eric Engestrom
parent 1e3e805b0c
commit 096e06c56a
3 changed files with 3 additions and 3 deletions

View file

@ -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"
},

View file

@ -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(

View file

@ -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')
)