pan/decode: Don't pass around memory handles
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 15 Aug 2022 18:35:45 +0000 (18:35 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 17 Aug 2022 17:25:55 +0000 (17:25 +0000)
commitc4c3f246fec46c32f489a5f970bbe65354a2e682
treeafe30f301e58abca5820fc74fa4afdb84179b09a
parentf6492338962415721511dd904eb3d1e7701bd60e
pan/decode: Don't pass around memory handles

The hardware doesn't care what BO a given buffer resides in, only what GPU
address it's at. It's simpler to fetch from a GPU address, rather than the pair
of a GPU address and a backing allocation. This cleans up a lot of cruft in
pandecode.

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