i965/miptree: Make level_has_hiz take a const miptree
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 31 May 2017 18:50:24 +0000 (11:50 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 8 Jun 2017 05:18:53 +0000 (22:18 -0700)
Acked-by: Chad Versace <chadversary@chromium.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h

index 18a83aedb473a57d1939924264bab4670abb02e7..5e7ffc7a115407132d6b671b304388072e475002 100644 (file)
@@ -1986,7 +1986,7 @@ intel_miptree_sample_with_hiz(struct brw_context *brw,
  * Does the miptree slice have hiz enabled?
  */
 bool
-intel_miptree_level_has_hiz(struct intel_mipmap_tree *mt, uint32_t level)
+intel_miptree_level_has_hiz(const struct intel_mipmap_tree *mt, uint32_t level)
 {
    intel_miptree_check_level_layer(mt, level, 0);
    return mt->level[level].has_hiz;
index 97f5c286f1b94507783a3c0bae4475ed9d2faf5b..1c9741a1c1941e6f84547bf1a389d8b3b4048137 100644 (file)
@@ -858,7 +858,7 @@ intel_miptree_alloc_hiz(struct brw_context *brw,
                        struct intel_mipmap_tree *mt);
 
 bool
-intel_miptree_level_has_hiz(struct intel_mipmap_tree *mt, uint32_t level);
+intel_miptree_level_has_hiz(const struct intel_mipmap_tree *mt, uint32_t level);
 
 /**
  * \return false if no resolve was needed