panfrost: Avoid copying job descriptors around when we can
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 8 Sep 2020 18:32:41 +0000 (20:32 +0200)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 21 Sep 2020 11:35:45 +0000 (07:35 -0400)
commit6b923037726beb613179f33986176bc407ca91b0
tree1ee2d0c67caa4402b56d138d52b818fce8f0414c
parentd289209ea68f47411c15a7c46fa2d8c2d1a4a61b
panfrost: Avoid copying job descriptors around when we can

Job descriptors are written section by section and are never modified
after them been emitted. Let's avoid copying things around by allocating
descriptors upfront and letting the scoreboard logic only write the
header section.

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/6797>
src/gallium/drivers/panfrost/pan_cmdstream.c
src/gallium/drivers/panfrost/pan_cmdstream.h
src/gallium/drivers/panfrost/pan_compute.c
src/gallium/drivers/panfrost/pan_context.c
src/panfrost/lib/pan_blit.c
src/panfrost/lib/pan_scoreboard.c
src/panfrost/lib/pan_scoreboard.h