Mesa (master): i915: Remove unused fields intel_mipmap_tree::logical_( width|height|depth)0

Ian Romanick idr at kemper.freedesktop.org
Mon Jun 26 22:20:21 UTC 2017


Module: Mesa
Branch: master
Commit: 97d332ce0e9e47714da20f799e6f1a92fb1f53dd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=97d332ce0e9e47714da20f799e6f1a92fb1f53dd

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Fri Jun  2 16:57:45 2017 -0700

i915: Remove unused fields intel_mipmap_tree::logical_(width|height|depth)0

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

---

 src/mesa/drivers/dri/i915/intel_mipmap_tree.c | 3 ---
 src/mesa/drivers/dri/i915/intel_mipmap_tree.h | 8 --------
 2 files changed, 11 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/intel_mipmap_tree.c b/src/mesa/drivers/dri/i915/intel_mipmap_tree.c
index 92f116b9e0..6c0f55b638 100644
--- a/src/mesa/drivers/dri/i915/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i915/intel_mipmap_tree.c
@@ -83,9 +83,6 @@ intel_miptree_create_layout(struct intel_context *intel,
    mt->format = format;
    mt->first_level = first_level;
    mt->last_level = last_level;
-   mt->logical_width0 = width0;
-   mt->logical_height0 = height0;
-   mt->logical_depth0 = depth0;
 
    /* The cpp is bytes per (1, blockheight)-sized block for compressed
     * textures.  This is why you'll see divides by blockheight all over
diff --git a/src/mesa/drivers/dri/i915/intel_mipmap_tree.h b/src/mesa/drivers/dri/i915/intel_mipmap_tree.h
index afe27e3145..b4a8968db3 100644
--- a/src/mesa/drivers/dri/i915/intel_mipmap_tree.h
+++ b/src/mesa/drivers/dri/i915/intel_mipmap_tree.h
@@ -168,14 +168,6 @@ struct intel_mipmap_tree
    GLuint cpp;
    bool compressed;
 
-   /**
-    * Level zero image dimensions.  These dimensions correspond to the
-    * logical width, height, and depth of the region as seen by client code.
-    * Accordingly, they do not account for the extra factor of 6 in depth that
-    * must be allocated in order to accommodate cubemap textures.
-    */
-   uint32_t logical_width0, logical_height0, logical_depth0;
-
    /* Derived from the above:
     */
    GLuint total_width;




More information about the mesa-commit mailing list