i965/miptree: Delete an unused function
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 9 Apr 2018 18:20:27 +0000 (11:20 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Sat, 21 Apr 2018 00:14:37 +0000 (17:14 -0700)
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 <rafael.antognolli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h

index 0580cc053463e273c8aae3b1b12856583bcf49ae..d95128de119ab1a798248e6c07735a6d8ff4b61e 100644 (file)
@@ -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,
index 4136c6586b630a2b6cb060e3e4fceef88714279d..2f754427fc5de0d00ce91b80bab25419bec474b4 100644 (file)
@@ -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);