Mesa (main): pan/decode: Change indent when decoding resources
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jul 8 01:48:58 UTC 2022
Module: Mesa
Branch: main
Commit: 91d9a349259f8c6a715fc42826a328d6d50da75f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=91d9a349259f8c6a715fc42826a328d6d50da75f
Author: Icecream95 <ixn at disroot.org>
Date: Thu Jul 7 12:27:50 2022 +1200
pan/decode: Change indent when decoding resources
Make the separation between entries in the resource table more
obvious.
Increase the indent by two levels to keep descriptors distinct from
the resource entry itself.
Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17371>
---
src/panfrost/lib/genxml/decode.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/panfrost/lib/genxml/decode.c b/src/panfrost/lib/genxml/decode.c
index 69d3f73048f..cbd44620b52 100644
--- a/src/panfrost/lib/genxml/decode.c
+++ b/src/panfrost/lib/genxml/decode.c
@@ -1215,8 +1215,10 @@ pandecode_resource_tables(mali_ptr addr, const char *label)
pan_unpack(cl + i * MALI_RESOURCE_LENGTH, RESOURCE, entry);
DUMP_UNPACKED(RESOURCE, entry, "Entry %u:\n", i);
+ pandecode_indent += 2;
if (entry.address)
pandecode_resources(entry.address, entry.size);
+ pandecode_indent -= 2;
}
}
More information about the mesa-commit
mailing list