From: Marek Olšák Date: Fri, 5 Apr 2013 12:18:22 +0000 (+0200) Subject: gallium/util: add const to a parameter of util_max_layer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eff66bc9f855fff5c4f5f57f247254a97431e8ad;p=mesa.git gallium/util: add const to a parameter of util_max_layer --- diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h index 719ba25ba60..7770cd5148e 100644 --- a/src/gallium/auxiliary/util/u_inlines.h +++ b/src/gallium/auxiliary/util/u_inlines.h @@ -583,7 +583,7 @@ util_copy_constant_buffer(struct pipe_constant_buffer *dst, } static INLINE unsigned -util_max_layer(struct pipe_resource *r, unsigned level) +util_max_layer(const struct pipe_resource *r, unsigned level) { switch (r->target) { case PIPE_TEXTURE_CUBE: