Re: [OE-core] [PATCH] mesa.inc: add dispmanx support

Khem Raj
2020-12-03T19:01:27Z

On Thu, Dec 3, 2020 at 5:35 AM Trevor Woerner <twoerner@gmail.com> wrote:
>
> On the RaspberryPi it is possible to run gles2 applications on top of dispmanx
> without the need for x11/wayland/etc.
>
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
> meta/recipes-graphics/mesa/mesa.inc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
> index a6652b0ddb..34cb3c35e2 100644
> --- a/meta/recipes-graphics/mesa/mesa.inc
> +++ b/meta/recipes-graphics/mesa/mesa.inc
> @@ -51,7 +51,7 @@ inherit meson pkgconfig python3native gettext features_check
>
> BBCLASSEXTEND = "native nativesdk"
>
> -ANY_OF_DISTRO_FEATURES_class-target = "opengl vulkan"
> +ANY_OF_DISTRO_FEATURES_class-target = "opengl vulkan dispmanx"
>

dispmanx is only supported by userland graphics and we do have a
machine feature knob for that
this addition seems not common enough to warrant inclusion in OE-Core.
I would suggest to keep it
in meta-raspberrypi via a bbappend using the machine feature check.

> PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)} \
> ${@bb.utils.contains('PACKAGECONFIG', 'gbm', 'drm', '', d)} \
> --
> 2.28.0.497.g54e85e7af1
>
>
>
>