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