gallium: inline trivial needs_pack()

No functional change.

Signed-off-by: Luc Ma <luc@sietium.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29833>
This commit is contained in:
Luc Ma 2024-06-21 17:33:11 +08:00 committed by Marge Bot
parent cde1a1d5c2
commit 6f1dd9a2aa

View file

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