[Mesa-dev] [PATCH 2/2] i965: remove unused variable at intel_miptree_create_for_teximage

Timothy Arceri timothy.arceri at collabora.com
Sun Sep 11 22:58:56 UTC 2016


This patch is:

Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>

On Sun, 2016-09-11 at 00:07 +0200, Alejandro Piñeiro wrote:
> After commit "i965: Fix calculation of the image height at start
> level", it is
> not needed. This commit removes the "warning: unused variable ‘i’"
> warning.
> ---
>  src/mesa/drivers/dri/i965/intel_tex_image.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c
> b/src/mesa/drivers/dri/i965/intel_tex_image.c
> index a012927..f204db3 100644
> --- a/src/mesa/drivers/dri/i965/intel_tex_image.c
> +++ b/src/mesa/drivers/dri/i965/intel_tex_image.c
> @@ -40,7 +40,6 @@ intel_miptree_create_for_teximage(struct
> brw_context *brw,
>  {
>     GLuint lastLevel;
>     int width, height, depth;
> -   GLuint i;
>  
>     intel_get_image_dims(&intelImage->base.Base, &width, &height,
> &depth);
>  


More information about the mesa-dev mailing list