asahi/decode: Remove agxdecode_dump_bo
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 18 Mar 2023 18:30:31 +0000 (14:30 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Apr 2023 03:23:03 +0000 (03:23 +0000)
Now that we have proper parsing this is more of a nuissance than not.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22353>

src/asahi/lib/decode.c

index 074b98e..9e70807 100644 (file)
@@ -254,14 +254,6 @@ agxdecode_map_read_write(void)
 
 unsigned agxdecode_indent = 0;
 
-static void
-agxdecode_dump_bo(struct agx_bo *bo, const char *name)
-{
-   fprintf(agxdecode_dump_stream, "%s %s (%u)\n", name, bo->name ?: "",
-           bo->handle);
-   hexdump(agxdecode_dump_stream, bo->ptr.cpu, bo->size, false);
-}
-
 /* Abstraction for command stream parsing */
 typedef unsigned (*decode_cmd)(const uint8_t *map, uint64_t *link, bool verbose,
                                void *data);
@@ -283,8 +275,6 @@ agxdecode_stateful(uint64_t va, const char *label, decode_cmd decoder,
    uint8_t *end = (uint8_t *)alloc->ptr.cpu + alloc->size;
    uint64_t link = 0;
 
-   if (verbose)
-      agxdecode_dump_bo(alloc, label);
    fflush(agxdecode_dump_stream);
 
    while (map < end) {