From: Nanley Chery Date: Mon, 9 Apr 2018 18:20:27 +0000 (-0700) Subject: i965/miptree: Delete an unused function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b2032910761a7e36ceeb498eee4e77c7a916f38;p=mesa.git i965/miptree: Delete an unused function We're going to combine ::mcs_buf and ::hiz_buf in later commits. Once that happens, this function no longer make sense. Reviewed-by: Rafael Antognolli Reviewed-by: Jason Ekstrand --- 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);