[Mesa-dev] [PATCH 14/30] egl/surfaceless: trivial coding style fixes

Gurchetan Singh gurchetansingh at chromium.org
Thu Aug 25 21:14:42 UTC 2016


Reviewed-by: Gurchetan Singh <gurchetansingh at chromium.org>

On Thu, Aug 25, 2016 at 9:18 AM, Emil Velikov <emil.l.velikov at gmail.com>
wrote:

> From: Emil Velikov <emil.velikov at collabora.com>
>
> Remove a few gratious blank lines and use the correct level of
> indentation.
>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
>  src/egl/drivers/dri2/egl_dri2.h             | 1 -
>  src/egl/drivers/dri2/platform_surfaceless.c | 5 +----
>  2 files changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_
> dri2.h
> index 7daec3c..7156955 100644
> --- a/src/egl/drivers/dri2/egl_dri2.h
> +++ b/src/egl/drivers/dri2/egl_dri2.h
> @@ -304,7 +304,6 @@ struct dri2_egl_surface
>        __DRIimage           *front;
>        unsigned int         visual;
>  #endif
> -
>  };
>
>  struct dri2_egl_config
> diff --git a/src/egl/drivers/dri2/platform_surfaceless.c
> b/src/egl/drivers/dri2/platform_surfaceless.c
> index c75a895..f613c03 100644
> --- a/src/egl/drivers/dri2/platform_surfaceless.c
> +++ b/src/egl/drivers/dri2/platform_surfaceless.c
> @@ -180,15 +180,12 @@ dri2_surfaceless_create_pbuffer_surface(_EGLDriver
> *drv, _EGLDisplay *disp,
>  static EGLBoolean
>  surfaceless_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *dpy)
>  {
> -
>     struct dri2_egl_display *dri2_dpy = dri2_egl_display(dpy);
> -
>     static const unsigned int visuals[3][4] = {
>        { 0xff0000, 0xff00, 0xff, 0xff000000 },   // ARGB8888
>        { 0xff0000, 0xff00, 0xff, 0x0 },          // RGB888
>        { 0xf800, 0x7e0, 0x1f, 0x0  },            // RGB565
>     };
> -
>     unsigned int count, i, j;
>
>     count = 0;
> @@ -205,7 +202,7 @@ surfaceless_add_configs_for_visuals(_EGLDriver *drv,
> _EGLDisplay *dpy)
>     }
>
>     if (!count)
> -         _eglLog(_EGL_DEBUG, "Can't create surfaceless visuals");
> +      _eglLog(_EGL_DEBUG, "Can't create surfaceless visuals");
>
>     return (count != 0);
>  }
> --
> 2.9.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160825/16f33b51/attachment.html>


More information about the mesa-dev mailing list