From 58d4430ab5918350268e75f458a1352e022842b4 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Thu, 7 Oct 2021 11:51:42 +0200 Subject: [PATCH] package/mesa3d: add gbm api features Introduce gbm features so that each packages depending on it can choose which implementation is required. Signed-off-by: Kamel Bouhara Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/mesa3d/Config.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in index 82a40511f1..7da9ca4f5b 100644 --- a/package/mesa3d/Config.in +++ b/package/mesa3d/Config.in @@ -388,6 +388,9 @@ config BR2_PACKAGE_MESA3D_GBM bool "gbm" depends on BR2_PACKAGE_MESA3D_DRI_DRIVER \ || (BR2_PACKAGE_MESA3D_GALLIUM_DRIVER && BR2_PACKAGE_MESA3D_OPENGL_EGL) + select BR2_PACKAGE_HAS_LIBGBM + select BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT + select BR2_PACKAGE_LIBGBM_HAS_FEATURE_DMA_BUF help Enable Generic Buffer Management (gbm) @@ -424,6 +427,9 @@ config BR2_PACKAGE_MESA3D_OPENGL_ES endif # BR2_PACKAGE_MESA3D_DRIVER +config BR2_PACKAGE_PROVIDES_LIBGBM + default "mesa3d" if BR2_PACKAGE_MESA3D_GBM + config BR2_PACKAGE_PROVIDES_LIBGL default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_GLX