Mesa (master): i965: Mark read-only args as const in intel_miptree_supports_hiz()

Topi Pohjolainen tpohjola at kemper.freedesktop.org
Tue Jul 18 19:27:32 UTC 2017


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

Author: Topi Pohjolainen <topi.pohjolainen at intel.com>
Date:   Wed Jun 28 08:33:14 2017 +0300

i965: Mark read-only args as const in intel_miptree_supports_hiz()

Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

---

 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 ++--
 1 file 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 5f60abb3de..04ed017a10 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -222,8 +222,8 @@ intel_tiling_supports_hiz(const struct brw_context *brw, unsigned tiling)
 }
 
 static bool
-intel_miptree_supports_hiz(struct brw_context *brw,
-                           struct intel_mipmap_tree *mt)
+intel_miptree_supports_hiz(const struct brw_context *brw,
+                           const struct intel_mipmap_tree *mt)
 {
    if (!brw->has_hiz)
       return false;




More information about the mesa-commit mailing list