[Mesa-dev] [PATCH 11/12] intel: Document intel_mipmap_tree::total_width, total_height

Chad Versace chad.versace at linux.intel.com
Thu Feb 28 15:45:15 PST 2013


I had to use a debugger to deduce what total_width/height really were.
This patch is for the benefit of those who come after so they don't have
to dig as hard.

Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 src/mesa/drivers/dri/intel/intel_mipmap_tree.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h
index bc55e26..1c852ff 100644
--- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h
+++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h
@@ -265,7 +265,12 @@ struct intel_mipmap_tree
     */
    enum intel_msaa_layout msaa_layout;
 
-   /* Derived from the above:
+   /**
+    * The total physical size of the miptree, including all levels, slices,
+    * and padding.
+    *
+    * \see physical_width0
+    * \see physical_height0
     */
    GLuint total_width;
    GLuint total_height;
-- 
1.8.1.2



More information about the mesa-dev mailing list