asahi: Unpack varying descriptors (1x)
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 11 Jul 2021 21:05:03 +0000 (17:05 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sun, 11 Jul 2021 22:32:41 +0000 (22:32 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11818>

src/asahi/lib/decode.c

index eea80e4..f19b12c 100644 (file)
@@ -377,6 +377,14 @@ agxdecode_record(uint64_t va, size_t size, bool verbose)
       if (cmd.fs_varyings) {
          uint8_t *map = agxdecode_fetch_gpu_mem(cmd.fs_varyings, 128);
          hexdump(agxdecode_dump_stream, map, 128, false);
+
+         DUMP_CL(VARYING_HEADER, map, "Varying header:");
+         map += AGX_VARYING_HEADER_LENGTH;
+
+         for (unsigned i = 0; i < cmd.input_count; ++i) {
+            DUMP_CL(VARYING, map, "Varying:");
+            map += AGX_VARYING_LENGTH;
+         }
       }
 
       DUMP_UNPACKED(BIND_PIPELINE, cmd, "Bind fragment pipeline\n");