[PATCH RESEND i-g-t v4 09/31] lib/igt_halffloat: introduce static sub-library for tools
Sebastian Brzezinka <[email protected]> Wed, 29 Jul 2026 13:03:26 +0200
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Message-ID | <36990156eade834bb5dcb041ab3c219e690dbb4b.1785152675.git.sebastian.brzezinka@intel.com> |
Add lib_igt_halffloat backed by igt_halffloat.c with a math dependency. Tools that use half-float conversion (e.g. intel_vbt_decode) can link this minimal library instead of the full libigt.so. Signed-off-by: Sebastian Brzezinka <[email protected]> Acked-by: Ashutosh Dixit <[email protected]> Reviewed-by: Krzysztof Niemiec <[email protected]> Reviewed-by: Krzysztof Karas <[email protected]> --- lib/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/meson.build b/lib/meson.build index 2c1fbcd43..93db217f8 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -415,6 +415,14 @@ lib_igt_stats_build = static_library('igt_stats_tools', lib_igt_stats = declare_dependency(link_with : lib_igt_stats_build, include_directories : inc) +lib_igt_halffloat_build = static_library('igt_halffloat', + ['igt_halffloat.c'], + include_directories : inc) + +lib_igt_halffloat = declare_dependency(link_with : lib_igt_halffloat_build, + dependencies : [math], + include_directories : inc) + i915_perf_files = [ 'igt_list.c', 'i915/perf.c', -- 2.53.0