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>
This commit is contained in:
@@ -332,7 +332,7 @@ option(
|
|||||||
'tools',
|
'tools',
|
||||||
type : 'array',
|
type : 'array',
|
||||||
value : [],
|
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`)',
|
description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
|
||||||
)
|
)
|
||||||
option(
|
option(
|
||||||
|
@@ -66,5 +66,5 @@ bifrost_compiler = executable(
|
|||||||
libpanfrost_encoder,
|
libpanfrost_encoder,
|
||||||
libpanfrost_midgard, # references disassemble_midgard...
|
libpanfrost_midgard, # references disassemble_midgard...
|
||||||
],
|
],
|
||||||
build_by_default : true
|
build_by_default : with_tools.contains('panfrost')
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user