summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-04-05 14:18:22 +0200
committerMarek Olšák <[email protected]>2013-04-06 23:57:15 +0200
commiteff66bc9f855fff5c4f5f57f247254a97431e8ad (patch)
treef88bc596b177e0f156440e43d557598715946a2b /src/gallium/auxiliary
parent08275b25cc12056f8e40409e0c0ec75326e873fc (diff)
gallium/util: add const to a parameter of util_max_layer
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_inlines.h2
1 files changed, 1 insertions, 1 deletions
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: