diff options
author | Dave Airlie <[email protected]> | 2017-11-21 07:28:56 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-11-30 09:32:31 +1000 |
commit | 77c70e5fe5e3e28eccc90a587f96b2401edc3fd4 (patch) | |
tree | b6a5f56c329eba53d44c10e5b33cac6ad08c5f87 /src/gallium/drivers/r600 | |
parent | 779306c8b6ee3b3f5b8d740d0e297961bb6b06b4 (diff) |
r600: add support for compute pkt flags to debug dumping.
This just lets us see packets marked for compute.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | src/gallium/drivers/r600/eg_debug.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gallium/drivers/r600/eg_debug.c b/src/gallium/drivers/r600/eg_debug.c index 43c4f41f237..ceb7c1672c4 100644 --- a/src/gallium/drivers/r600/eg_debug.c +++ b/src/gallium/drivers/r600/eg_debug.c @@ -148,6 +148,7 @@ static uint32_t *ac_parse_packet3(FILE *f, uint32_t *ib, int *num_dw, unsigned count = PKT_COUNT_G(ib[0]); unsigned op = PKT3_IT_OPCODE_G(ib[0]); const char *predicate = PKT3_PREDICATE(ib[0]) ? "(predicate)" : ""; + const char *compute_mode = (ib[0] & 0x2) ? "(C)" : ""; int i; /* Print the name first. */ @@ -162,14 +163,14 @@ static uint32_t *ac_parse_packet3(FILE *f, uint32_t *ib, int *num_dw, op == PKT3_SET_CONFIG_REG || op == PKT3_SET_UCONFIG_REG || op == PKT3_SET_SH_REG) - fprintf(f, COLOR_CYAN "%s%s" COLOR_CYAN ":\n", - name, predicate); + fprintf(f, COLOR_CYAN "%s%s%s" COLOR_CYAN ":\n", + name, compute_mode, predicate); else - fprintf(f, COLOR_GREEN "%s%s" COLOR_RESET ":\n", - name, predicate); + fprintf(f, COLOR_GREEN "%s%s%s" COLOR_RESET ":\n", + name, compute_mode, predicate); } else - fprintf(f, COLOR_RED "PKT3_UNKNOWN 0x%x%s" COLOR_RESET ":\n", - op, predicate); + fprintf(f, COLOR_RED "PKT3_UNKNOWN 0x%x%s%s" COLOR_RESET ":\n", + op, compute_mode, predicate); /* Print the contents. */ switch (op) { |