i965: Mark read-only args as const in intel_miptree_supports_hiz()
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 28 Jun 2017 05:33:14 +0000 (08:33 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 18 Jul 2017 18:35:03 +0000 (21:35 +0300)
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 5f60abb3de362159704a94abde2b4af3b772e2f5..04ed017a10ea08d4b7c1ac98458c17b31458c469 100644 (file)
@@ -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;