gallium/util: add const to a parameter of util_max_layer
authorMarek Olšák <maraeo@gmail.com>
Fri, 5 Apr 2013 12:18:22 +0000 (14:18 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 6 Apr 2013 21:57:15 +0000 (23:57 +0200)
src/gallium/auxiliary/util/u_inlines.h

index 719ba25ba60c840ac06b208bbccb1c14b520c3bb..7770cd5148e6275827a3ae9c683a5bec98547d4e 100644 (file)
@@ -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: