util/inlines: constify pipe_surface_equal()

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34054>
This commit is contained in:
Mike Blumenkrantz 2025-03-10 13:41:01 -04:00 committed by Marge Bot
parent 7154116220
commit 7999b8024c

View file

@ -421,7 +421,7 @@ pipe_surface_size(const struct pipe_surface *ps, uint16_t *width, uint16_t *heig
/* Return true if the surfaces are equal. */
static inline bool
pipe_surface_equal(struct pipe_surface *s1, struct pipe_surface *s2)
pipe_surface_equal(const struct pipe_surface *s1, const struct pipe_surface *s2)
{
return s1->texture == s2->texture &&
s1->format == s2->format &&