panfrost: Add various helpers to simplify FB desc emission
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 31 Mar 2021 07:56:19 +0000 (09:56 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Apr 2021 18:06:37 +0000 (18:06 +0000)
commit387f8c037d382877cc1379a7fb4524907bc4c088
tree2cf011fbf2f921fb1b6a3b3bdcb6f2a385a0752d
parent0fc7c1f97158d897705b675471159be6778e4ade
panfrost: Add various helpers to simplify FB desc emission

Now that image and image views are gallium-agnostic and contain enough
information, we can provide generic helpers to emit FB descriptors and
their dependencies, thread storage and tiler descriptors.

This helpers will be re-used in the Vulkan driver.

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/10033>
src/panfrost/lib/meson.build
src/panfrost/lib/pan_cs.c [new file with mode: 0644]
src/panfrost/lib/pan_cs.h [new file with mode: 0644]