From 6f1dd9a2aafb79e190ebfc8851b9e9be382854bf Mon Sep 17 00:00:00 2001 From: Luc Ma Date: Fri, 21 Jun 2024 17:33:11 +0800 Subject: [PATCH] gallium: inline trivial needs_pack() No functional change. Signed-off-by: Luc Ma Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/auxiliary/util/u_transfer_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_transfer_helper.c b/src/gallium/auxiliary/util/u_transfer_helper.c index 1e0f490a7d5..debf3fba725 100644 --- a/src/gallium/auxiliary/util/u_transfer_helper.c +++ b/src/gallium/auxiliary/util/u_transfer_helper.c @@ -172,7 +172,7 @@ u_transfer_helper_resource_destroy(struct pipe_screen *pscreen, helper->vtbl->resource_destroy(pscreen, prsc); } -static bool needs_pack(unsigned usage) +static inline bool needs_pack(unsigned usage) { return (usage & PIPE_MAP_READ) && !(usage & (PIPE_MAP_DISCARD_WHOLE_RESOURCE | PIPE_MAP_DISCARD_RANGE));