panfrost: decode: Rework the DUMP_{CL,ADDR}() macros
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 9 Sep 2020 15:56:53 +0000 (17:56 +0200)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 21 Sep 2020 11:35:45 +0000 (07:35 -0400)
commit670e818f906ce932695c4a409f0572a01a7c0b5b
tree77b6615443d37628132c17025a113dab5465062e
parent6249ae79d387b3599295cb7eb2824f9a432b7def
panfrost: decode: Rework the DUMP_{CL,ADDR}() macros

We don't need to pass the indentation level explicitly if we use
pandecode_log() instead of fprintf(). This helps keeping a consistent
indentation across descriptors.

While at it, let's rework those macros to allow creating titles from
a format string.

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/panfrost/lib/decode.c