mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
cde1a1d5c2
commit
6f1dd9a2aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue