Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

demmt: fix description of -a option

  • Loading branch information...
commit 94c23453c90073c35c05fa6a048d39719b2808cd 1 parent ca15120
@mslusarz mslusarz authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 rnn/demmt.c
  2. +1 −1  rnn/demmt.h
  3. +1 −1  rnn/demmt_pushbuf.c
View
6 rnn/demmt.c
@@ -68,7 +68,7 @@ int invalid_pushbufs_visible = 1;
int decode_invalid_buffers = 1;
int find_pb_pointer = 0;
int quiet = 0;
-int disassemble_shaders = 1;
+int decode_object_state = 1;
int indent_logs = 1;
int is_nouveau = 0;
int force_pushbuf_decoding = 0;
@@ -1241,7 +1241,7 @@ static void usage()
" -g\t\tprint gpu addresses\n"
" -o\t\tdump ioctl data\n"
" -q\t\t(quiet) print only the most important data (pushbufs from IB / USER, disassembled code, TSCs, TICs, etc)\n"
- " -a\t\tdisable shader disassembly\n"
+ " -a\t\tdisable decoding of object state (shader disassembly, TSCs, TICs, etc)\n"
" -c\t\tenable colors\n"
" -l file\tuse \"file\" as input (can be compressed by gzip / bzip2 / xz)\n"
" -t\t\tdeindent logs\n"
@@ -1296,7 +1296,7 @@ int main(int argc, char *argv[])
else if (!strcmp(argv[i], "-q"))
quiet = 1;
else if (!strcmp(argv[i], "-a"))
- disassemble_shaders = 0;
+ decode_object_state = 0;
else if (!strcmp(argv[i], "-c"))
colors = &envy_def_colors;
else if (!strcmp(argv[i], "-l"))
View
2  rnn/demmt.h
@@ -7,7 +7,7 @@
#define MMT_DEBUG 0
extern int find_pb_pointer;
extern int quiet;
-extern int disassemble_shaders;
+extern int decode_object_state;
extern int indent_logs;
extern const struct envy_colors *colors;
View
2  rnn/demmt_pushbuf.c
@@ -434,7 +434,7 @@ uint64_t pushbuf_print(struct pushbuf_decode_state *pstate, struct buffer *buffe
}
fprintf(stdout, "PB: 0x%08x %s", cmd, cmdoutput);
- if (disassemble_shaders)
+ if (decode_object_state)
{
struct obj *obj = subchans[pstate->subchan];
if (obj && obj->decoder)
Please sign in to comment.
Something went wrong with that request. Please try again.