diff options
author | Jason Ekstrand <[email protected]> | 2017-05-31 11:50:24 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-06-07 22:18:53 -0700 |
commit | e6c69264edab14c3eadff658835c11938b7339aa (patch) | |
tree | 932ce317bcb81334d737e3ca6a8635540ef5142b /src/mesa | |
parent | b2c6290b0140797d0e12dd5b358292289d43edc4 (diff) |
i965/miptree: Make level_has_hiz take a const miptree
Acked-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 18a83aedb47..5e7ffc7a115 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -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; diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h index 97f5c286f1b..1c9741a1c19 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h @@ -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 |