panfrost: Avoid accessing pan_pool fields directly
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 24 Aug 2020 09:48:10 +0000 (11:48 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Aug 2020 19:18:08 +0000 (19:18 +0000)
commitd87ab72ce95dce2d5b0e5116b66e8df6dc3f51c5
treef6f7e13db0ecaeebd63e27cff14d9a15faef869d
parent4047c691bff192fdcac20a16fb9a4f4071de4af9
panfrost: Avoid accessing pan_pool fields directly

Having panfrost_batch access the pan_pool fields directly makes it hard
to change pan_pool internals, like for instance, changing the hash table
for a dynamic array. Let's hide pan_pool internals behind helpers that do
what we need.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6494>
src/gallium/drivers/panfrost/pan_job.c
src/panfrost/lib/pan_pool.c
src/panfrost/lib/pan_pool.h