panfrost: add missing dependency on midgard_pack.h

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>
diff --git a/src/gallium/drivers/panfrost/meson.build b/src/gallium/drivers/panfrost/meson.build
index 89f877a..7222d40 100644
--- a/src/gallium/drivers/panfrost/meson.build
+++ b/src/gallium/drivers/panfrost/meson.build
@@ -64,7 +64,8 @@
   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],
diff --git a/src/panfrost/lib/meson.build b/src/panfrost/lib/meson.build
index a24eebc..efcc55e 100644
--- a/src/panfrost/lib/meson.build
+++ b/src/panfrost/lib/meson.build
@@ -50,6 +50,11 @@
   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],