Module: Mesa
Branch: master
Commit: 4e802089bcfa278f414fb3a0ce5879d840526691
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e802089bcfa278f414fb3a0ce5879d840526691

Author: Kenneth Graunke <[email protected]>
Date:   Fri Apr  5 11:52:59 2019 -0700

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 <[email protected]>

---

 src/gallium/auxiliary/util/u_range.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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);
 }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to