summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_range.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_range.h b/src/gallium/auxiliary/util/u_range.h
index 7d3fc61aa32..cbf855a2c57 100644
--- a/src/gallium/auxiliary/util/u_range.h
+++ b/src/gallium/auxiliary/util/u_range.h
@@ -67,7 +67,8 @@ util_range_add(struct util_range *range, unsigned start, unsigned end)
}
static inline boolean
-util_ranges_intersect(struct util_range *range, unsigned start, unsigned end)
+util_ranges_intersect(const struct util_range *range,
+ unsigned start, unsigned end)
{
return MAX2(start, range->start) < MIN2(end, range->end);
}