panfrost: Add reference type for unowned pool
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 13 May 2021 15:25:31 +0000 (11:25 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 May 2021 19:19:01 +0000 (19:19 +0000)
commit93d5fbf23ddaa24b9c3cbc493de3ef19526bc74f
treeddce70d87e807488c0b58ee4ab864eba2214bffd
parentbd55b6a72722ff1db25ad5a7e2c86001b071c96f
panfrost: Add reference type for unowned pool

This allows implementing the common pattern of allocating from an
unowned pool and immediately taking a reference.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10866>
src/panfrost/lib/pan_pool.h