panfrost: Add helpers to emit indirect dispatch jobs
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 19 Apr 2021 15:57:12 +0000 (17:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 22 Apr 2021 16:59:18 +0000 (16:59 +0000)
commit9b22cda364d92bd50c3bed12a28080ba0252f04d
tree766c494c398ead04d4d6d6b3b67430d147b88e8f
parent7d14a0cb999bf2b3fd880516b12e91c3ef271744
panfrost: Add helpers to emit indirect dispatch jobs

Indirect dispatch is implemented using an extra compute job patching
the compute job header to apply the final num_workgroup values. Add
helpers to simplify emission of the such jobs.

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/10332>
src/panfrost/Makefile.sources
src/panfrost/lib/meson.build
src/panfrost/lib/pan_device.h
src/panfrost/lib/pan_indirect_dispatch.c [new file with mode: 0644]
src/panfrost/lib/pan_indirect_dispatch.h [new file with mode: 0644]