lima/parser: Change value name in RSW parser
authorAndreas Baierl <ichgeh@imkreisrum.de>
Thu, 6 Feb 2020 10:41:35 +0000 (11:41 +0100)
committerAndreas Baierl <ichgeh@imkreisrum.de>
Fri, 7 Feb 2020 08:26:32 +0000 (09:26 +0100)
Second value of SHADER_ADDRESS is the length of the first instruction
in the shader, so give it a better name.

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619>

src/gallium/drivers/lima/lima_parser.c

index ae1764723eb3c810fa1bf77c74bb72d7d0aca95f..e08a4013672282352ac13de626b6a670a27fb0cb 100644 (file)
@@ -535,7 +535,7 @@ parse_rsw(FILE *fp, uint32_t *value, int i, uint32_t *helper)
          fprintf(fp, ", UNKNOWN\n");
       break;
    case 9: /* SHADER ADDRESS */
-      fprintf(fp, ": fs shader @ 0x%08x, ((uint32_t *)ctx->fs->bo->map)[0] & 0x1f: 0x%08x */\n",
+      fprintf(fp, ": fs shader @ 0x%08x, first instr length %d */\n",
               *value & 0xffffffe0, *value & 0x0000001f);
       break;
    case 10: /* VARYING TYPES */