panfrost: add missing dependency on midgard_pack.h
authorJonathan Marek <jonathan@marek.ca>
Thu, 13 Aug 2020 15:18:13 +0000 (11:18 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 13 Aug 2020 16:54:06 +0000 (16:54 +0000)
Fixes build failing when libpanfrost is built before midgard_pack.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6093>

src/gallium/drivers/panfrost/meson.build
src/panfrost/lib/meson.build

index 89f877a5bb293241df541b413cec204a265b5e52..7222d40c3c30d3654e4b1f3206b74f142e27b06d 100644 (file)
@@ -64,7 +64,8 @@ libpanfrost = static_library(
   dependencies: [
     dep_thread,
     dep_libdrm,
-    idep_nir
+    idep_nir,
+    idep_midgard_pack
   ],
   include_directories : panfrost_includes,
   c_args : [c_msvc_compat_args, compile_args_panfrost],
index a24eebca002b4f09a56c492a814984c98f216308..efcc55e2942d29a6a10e90302c5a35c392a88c48 100644 (file)
@@ -50,6 +50,11 @@ midgard_pack = custom_target(
   capture : true,
 )
 
+idep_midgard_pack = declare_dependency(
+  sources : [midgard_pack],
+  include_directories : include_directories('.'),
+)
+
 libpanfrost_lib = static_library(
   'panfrost_lib',
   [libpanfrost_lib_files, midgard_pack],