i965: Declare read-only input to level/layer check const
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 10 Jun 2016 15:16:22 +0000 (18:16 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 23 Nov 2016 09:06:53 +0000 (11:06 +0200)
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.h

index 29228b82cf22209db26dd61cc84bdc59ef4f2373..943c5a5909c9c7434b27c44749a2a118511c6b54 100644 (file)
@@ -805,7 +805,7 @@ intel_lower_compressed_format(struct brw_context *brw, mesa_format format);
 
 /** \brief Assert that the level and layer are valid for the miptree. */
 static inline void
-intel_miptree_check_level_layer(struct intel_mipmap_tree *mt,
+intel_miptree_check_level_layer(const struct intel_mipmap_tree *mt,
                                 uint32_t level,
                                 uint32_t layer)
 {