Mesa (main): panfrost: Only build libpanfrost with GL/VK

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 22 18:17:45 UTC 2021


Module: Mesa
Branch: main
Commit: a95dd9494da6966ce303fc238ddd9208be9a63bc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a95dd9494da6966ce303fc238ddd9208be9a63bc

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Wed Jul 21 15:14:17 2021 -0400

panfrost: Only build libpanfrost with GL/VK

It's not needed for the standalone compiler. These depend on xf86drm.h which is
not available on other platforms where we might want to build the standalone
compiler.

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12003>

---

 src/panfrost/meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/meson.build b/src/panfrost/meson.build
index cc919ca3691..7ce865c2d76 100644
--- a/src/panfrost/meson.build
+++ b/src/panfrost/meson.build
@@ -31,8 +31,11 @@ subdir('shared')
 subdir('util')
 subdir('midgard')
 subdir('bifrost')
-subdir('lib')
-subdir('perf')
+
+if with_gallium_panfrost or with_panfrost_vk
+   subdir('lib')
+   subdir('perf')
+endif
 
 files_bifrost = files(
   'bifrost/cmdline.c',



More information about the mesa-commit mailing list