> -----Original Message-----
> From: Emil Velikov [mailto:[email protected]]
> Sent: Thursday, June 15, 2017 9:59 PM
> To: Liu, Zhiquan <[email protected]>
> Cc: ML mesa-dev <[email protected]>; Long, Zhifang
> <[email protected]>; Rob Herring <[email protected]>; Tomasz Figa
> <[email protected]>
> Subject: Re: [PATCH] egl/android: config id increase one by one
> 
> On 12 January 2017 at 15:31, Emil Velikov <[email protected]> wrote:
> > On 12 January 2017 at 07:38, Liu Zhiquan <[email protected]> wrote:
> >> when dri2_add_config, driver_configs may add to exist dri2_conf, the
> >> config id should not increase in this case.
> >> In the code, when ConfigID equal to count+1, it's mean a new config,
> >> config_count will increase. otherwise it's a exist config.
> >>
> > What a lovely little bug. How exactly did you spotted it - please
> > mention in the commit log.
> >
> >> Signed-off-by: Liu Zhiquan <[email protected]>
> >> Signed-off-by: Long, Zhifang <[email protected]>
> >> ---
> >>  src/egl/drivers/dri2/platform_android.c | 11 ++++++-----
> >>  1 file changed, 6 insertions(+), 5 deletions(-)
> >>
> >> diff --git a/src/egl/drivers/dri2/platform_android.c
> >> b/src/egl/drivers/dri2/platform_android.c
> >> index 1c880f9..5bf6fd5 100644
> >> --- a/src/egl/drivers/dri2/platform_android.c
> >> +++ b/src/egl/drivers/dri2/platform_android.c
> >> @@ -950,9 +950,9 @@ droid_add_configs_for_visuals(_EGLDriver *drv,
> _EGLDisplay *dpy)
> >>       EGL_NONE
> >>     };
> >>     unsigned int format_count[ARRAY_SIZE(visuals)] = { 0 };
> >> -   int count, i, j;
> >> +   int config_count, i, j;
> >>
> > Please keep the variable name as-is. With that the patch is
> > Reviewed-by: Emil Velikov <[email protected]>
> >
> > Other platforms would need similar fix, can you please send patches
> > for those as well please ?
> >
> Humble poke - any update?
I find [email protected] have made a patch (egl: properly count configs) to 
complete this patch. Please review that one.
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to