i965/miptree: Make level_has_hiz take a const miptree

Acked-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
Jason Ekstrand
2017-05-31 11:50:24 -07:00
parent b2c6290b01
commit e6c69264ed
2 changed files with 2 additions and 2 deletions
@@ -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;
@@ -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