[Mesa-stable] [PATCH] egl/android: do not indent HAVE_DRM_GRALLOC preprocessor directive

Andres Gomez agomez at igalia.com
Mon Sep 3 13:38:54 UTC 2018


Hi Mauro,

Since you already marked with the "Fixes" tag(s) I already get notice
of it.

This doesn't really fix any functionality so, in general, a patch like
this wouldn't make it for the stable queues but it is completely
harmless and I would have to do the same effort including it than
adding it to the cherry-ignore list.

Therefore, I've already picked it for stable.

Thanks for the contribution!


On Sun, 2018-09-02 at 11:52 +0200, Mauro Rossi wrote:
> Hi Andres,
> 
> In the attachement a patch that fixes commits that were originally in
> mesa 18.2 branch
> that was applied to mesa master:
> 
> https://cgit.freedesktop.org/mesa/mesa/commit/?id=ac0856ae4100a05dcd1fd932d9fd10200f8f7a7c
> 
> Emil told me it's not strictly necessary to apply in mesa 18.2.0,
> but the commits to fix are also there and the patch applies cleanly in 18.2
> 
> So I wanted to check with you, I would propose as a candidate for
> 18.2.0 release, if there is still time
> Mauro
> 
> 
> Il giorno mer 15 ago 2018 alle ore 15:13 Mauro Rossi
> <issor.oruam at gmail.com> ha scritto:
> > 
> > Fixes: 3f7bca44d9 ("egl/android: #ifdef out flink name support")
> > Fixes: c7bb82136b ("egl/android: Add DRM node probing and filtering")
> > Signed-off-by: Mauro Rossi <issor.oruam at gmail.com>
> > ---
> >  src/egl/drivers/dri2/platform_android.c | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
> > index 834bbd258e..f8c85f97cf 100644
> > --- a/src/egl/drivers/dri2/platform_android.c
> > +++ b/src/egl/drivers/dri2/platform_android.c
> > @@ -1226,7 +1226,7 @@ droid_load_driver(_EGLDisplay *disp)
> >     dri2_dpy->is_render_node = drmGetNodeTypeFromFd(dri2_dpy->fd) == DRM_NODE_RENDER;
> > 
> >     if (!dri2_dpy->is_render_node) {
> > -   #ifdef HAVE_DRM_GRALLOC
> > +#ifdef HAVE_DRM_GRALLOC
> >         /* Handle control nodes using __DRI_DRI2_LOADER extension and GEM names
> >          * for backwards compatibility with drm_gralloc. (Do not use on new
> >          * systems.) */
> > @@ -1235,10 +1235,10 @@ droid_load_driver(_EGLDisplay *disp)
> >            err = "DRI2: failed to load driver";
> >            goto error;
> >         }
> > -   #else
> > +#else
> >         err = "DRI2: handle is not for a render node";
> >         goto error;
> > -   #endif
> > +#endif
> >     } else {
> >         dri2_dpy->loader_extensions = droid_image_loader_extensions;
> >         if (!dri2_load_driver_dri3(disp)) {
> > --
> > 2.17.1
> > 
> 
> _______________________________________________
> mesa-stable mailing list
> mesa-stable at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-stable
-- 
Br,

Andres


More information about the mesa-stable mailing list