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>
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],
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],