[Mesa-dev] [PATCH v3 2/9] i965/miptree: Delete an unused function

Rafael Antognolli rafael.antognolli at intel.com
Fri Apr 20 16:55:19 UTC 2018


Patches 1 and 2 are

Reviewed-by: Rafael Antognolli <rafael.antognolli at intel.com>

On Wed, Apr 11, 2018 at 01:42:19PM -0700, Nanley Chery wrote:
> We're going to combine ::mcs_buf and ::hiz_buf in later commits. Once
> that happens, this function no longer make sense.
> ---
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 13 -------------
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.h |  4 ----
>  2 files changed, 17 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index 0580cc05346..d95128de119 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> @@ -3792,19 +3792,6 @@ get_isl_dim_layout(const struct gen_device_info *devinfo,
>     unreachable("Invalid texture target");
>  }
>  
> -enum isl_aux_usage
> -intel_miptree_get_aux_isl_usage(const struct brw_context *brw,
> -                                const struct intel_mipmap_tree *mt)
> -{
> -   if (mt->hiz_buf)
> -      return ISL_AUX_USAGE_HIZ;
> -
> -   if (!mt->mcs_buf)
> -      return ISL_AUX_USAGE_NONE;
> -
> -   return mt->aux_usage;
> -}
> -
>  bool
>  intel_miptree_set_clear_color(struct brw_context *brw,
>                                struct intel_mipmap_tree *mt,
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
> index 4136c6586b6..2f754427fc5 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
> @@ -485,10 +485,6 @@ enum isl_dim_layout
>  get_isl_dim_layout(const struct gen_device_info *devinfo,
>                     enum isl_tiling tiling, GLenum target);
>  
> -enum isl_aux_usage
> -intel_miptree_get_aux_isl_usage(const struct brw_context *brw,
> -                                const struct intel_mipmap_tree *mt);
> -
>  void
>  intel_get_image_dims(struct gl_texture_image *image,
>                       int *width, int *height, int *depth);
> -- 
> 2.16.2
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list