Commit 4e802089 authored by Kenneth Graunke's avatar Kenneth Graunke

gallium/util: Add const to u_range_intersect

This doesn't modify the range, so it can accept a const pointer.
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
parent c5a6e72e
Pipeline #28884 passed with stages
in 18 minutes and 46 seconds
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment