asahi: decode: Add a params argument to pass through
authorAsahi Lina <lina@asahilina.net>
Fri, 7 Jul 2023 10:41:48 +0000 (19:41 +0900)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jul 2023 15:33:28 +0000 (15:33 +0000)
commit69e91527d3d3d40429509141e855889cc9fc2d59
treee8b2f228697b117d2ad7e809673073dbf47889ef
parentde1174791d7612c1d08d0ef7c6ebbd41fa7f8dfe
asahi: decode: Add a params argument to pass through

Sooner or later we were going to need divergent codepaths in decode, and
it looks like now is the time. Add a `params` typedef and pass it
through all the decoder callbacks. This is an alias for
drm_asahi_params_global, but use a typedef so we can change that later
without changing dozens of instances.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24258>
src/asahi/lib/decode.c