Re: [Mesa-dev] [PATCH 4/6] egl/dri: remove old left-overs

2017-10-10 Thread Emil Velikov
On 6 October 2017 at 21:16, Nicolai Hähnle  wrote:
> From: Nicolai Hähnle 
>
> ---
>  src/egl/drivers/dri2/platform_x11_dri3.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c 
> b/src/egl/drivers/dri2/platform_x11_dri3.c
> index 45bb56ca17e..eadd37141e0 100644
> --- a/src/egl/drivers/dri2/platform_x11_dri3.c
> +++ b/src/egl/drivers/dri2/platform_x11_dri3.c
> @@ -297,22 +297,20 @@ dri3_create_image_khr_pixmap(_EGLDisplay *disp, 
> _EGLContext *ctx,
> free(bp_reply);
>
> return _img->base;
>  }
>
>  static _EGLImage *
>  dri3_create_image_khr(_EGLDriver *drv, _EGLDisplay *disp,
>_EGLContext *ctx, EGLenum target,
>EGLClientBuffer buffer, const EGLint *attr_list)
>  {
> -   (void) drv;
> -
I wouldn't bother with this for now - there's a ton more left.
We should drop the drv argument through egl, but rather boring and mechanical.

-Emil
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [PATCH 4/6] egl/dri: remove old left-overs

2017-10-06 Thread Nicolai Hähnle
From: Nicolai Hähnle 

---
 src/egl/drivers/dri2/platform_x11_dri3.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c 
b/src/egl/drivers/dri2/platform_x11_dri3.c
index 45bb56ca17e..eadd37141e0 100644
--- a/src/egl/drivers/dri2/platform_x11_dri3.c
+++ b/src/egl/drivers/dri2/platform_x11_dri3.c
@@ -297,22 +297,20 @@ dri3_create_image_khr_pixmap(_EGLDisplay *disp, 
_EGLContext *ctx,
free(bp_reply);
 
return _img->base;
 }
 
 static _EGLImage *
 dri3_create_image_khr(_EGLDriver *drv, _EGLDisplay *disp,
   _EGLContext *ctx, EGLenum target,
   EGLClientBuffer buffer, const EGLint *attr_list)
 {
-   (void) drv;
-
switch (target) {
case EGL_NATIVE_PIXMAP_KHR:
   return dri3_create_image_khr_pixmap(disp, ctx, buffer, attr_list);
default:
   return dri2_create_image_khr(drv, disp, ctx, target, buffer, attr_list);
}
 }
 
 /**
  * Called by the driver when it needs to update the real front buffer with the
-- 
2.11.0

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev