From: Topi Pohjolainen Date: Wed, 28 Jun 2017 05:33:14 +0000 (+0300) Subject: i965: Mark read-only args as const in intel_miptree_supports_hiz() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee97b78a3e497a1f3b4c71d5fdfccb44da7a1c3a;p=mesa.git i965: Mark read-only args as const in intel_miptree_supports_hiz() Reviewed-by: Emil Velikov Reviewed-by: Jason Ekstrand Signed-off-by: Topi Pohjolainen --- diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 5f60abb3de3..04ed017a10e 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;