panfrost: Pass a memory pool to pan_blit_ctx_init()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 2 Jun 2021 07:44:51 +0000 (09:44 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 5 Jul 2021 05:43:49 +0000 (05:43 +0000)
commitdea0c4ddd879b87c6fdf552e8c9dfbf6b3d09279
tree516ea33fa6d0e5597c8f071a241031a4b6096e4e
parent3cdbc1e8c0e854f9266e0a1a1ec668f1ed2aeb74
panfrost: Pass a memory pool to pan_blit_ctx_init()

Pass a memory pool to pan_blit_ctx_init() instead of creating a new pool.
Useful for Vulkan since the descriptor pool is at the command buffer
level and is thus shared by all blit batches. Doing this will save us a
BO ownership transfer.

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