diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2024-03-11 14:34:16 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-03-12 20:39:56 +0000 |
commit | 63f5a6cbe30b614aa416a3634da25712788b76ef (patch) | |
tree | c5e01aeba28d5147a31816755ef2ac0a3b41b6d7 | |
parent | 61e5b6ad9dcde1f2a75dfd09cdbf9ea86b352223 (diff) |
u/inlines: constify util_res_sample_count()
no functional changes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28115>
-rw-r--r-- | src/gallium/auxiliary/util/u_inlines.h | 2 |
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 5aba9db49d7..7e855e498db 100644 --- a/src/gallium/auxiliary/util/u_inlines.h +++ b/src/gallium/auxiliary/util/u_inlines.h @@ -915,7 +915,7 @@ pipe_create_multimedia_context(struct pipe_screen *screen) return screen->context_create(screen, NULL, flags); } -static inline unsigned util_res_sample_count(struct pipe_resource *res) +static inline unsigned util_res_sample_count(const struct pipe_resource *res) { return res->nr_samples > 0 ? res->nr_samples : 1; } |