panfrost: build panfrost_compile for -Dtools=panfrost
This allows building tools for cross-compiling without building gallium or vulkan drivers unnecessarily. Backport-to: 25.1 Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Signed-off-by: Janne Grunau <j@jannau.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34693> (cherry picked from commit 674c96ad0a4a9b57342c90135fbceb696d7aae46)
This commit is contained in:

committed by
Eric Engestrom

parent
449a7f98c7
commit
e37333798c
@@ -234,7 +234,7 @@
|
||||
"description": "panfrost: build panfrost_compile for -Dtools=panfrost",
|
||||
"nominated": true,
|
||||
"nomination_type": 4,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
@@ -60,8 +60,8 @@ LLVM is required by Panfrost's compilers at build time.
|
||||
|
||||
In case of cross compilation without LLVM,
|
||||
you can build and install the required tools on the host (with LLVM installed) with
|
||||
``meson . build-host/ -Dvulkan-drivers=panfrost -Dgallium-drivers=panfrost
|
||||
-Dmesa-clc=enabled -Dinstall-mesa-clc=true -Dprecomp-compiler=enabled -Dinstall-precomp-compiler=true``
|
||||
``meson . build-host/ -Dtools=panfrost -Dmesa-clc=enabled -Dinstall-mesa-clc=true
|
||||
-Dprecomp-compiler=enabled -Dinstall-precomp-compiler=true``
|
||||
and then use ``-Dmesa-clc=system -Dprecomp-compiler=system`` on the cross compile side.
|
||||
|
||||
For general information on building Mesa, read :doc:`the install documentation
|
||||
|
@@ -15,9 +15,12 @@ subdir('util')
|
||||
subdir('midgard')
|
||||
subdir('compiler')
|
||||
|
||||
if with_gallium_panfrost or with_panfrost_vk
|
||||
if with_gallium_panfrost or with_panfrost_vk or with_tools.contains('panfrost')
|
||||
subdir('lib')
|
||||
subdir('clc')
|
||||
endif
|
||||
|
||||
if with_gallium_panfrost or with_panfrost_vk
|
||||
subdir('libpan')
|
||||
subdir('perf')
|
||||
endif
|
||||
|
Reference in New Issue
Block a user