aubinator: Drop unused print_dword_headers flag.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 20 Mar 2017 04:30:37 +0000 (21:30 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 20 Mar 2017 18:20:51 +0000 (11:20 -0700)
I added this flag in 65a9d5eabb05e4925c1c9a17836cad57304210d6 but
it was completely unused.  Both callers appear to have printed dword
headers, so we can just drop the flag and continue doing it
unconditionally.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/aubinator.c

index 6a37da1..05eb3d1 100644 (file)
@@ -132,8 +132,7 @@ print_iterator_values(struct gen_field_iterator *iter, int *idx)
 
 static void
 decode_group(struct gen_spec *spec, struct gen_group *strct,
-             const uint32_t *p, int starting_dword,
-             bool print_dword_headers)
+             const uint32_t *p, int starting_dword)
 {
    struct gen_field_iterator iter;
    char *token = NULL;
@@ -156,7 +155,7 @@ decode_group(struct gen_spec *spec, struct gen_group *strct,
          fprintf(outfile, "0x%08"PRIx64":  0x%08x : Dword %d\n",
                  offset + 4 * idx, p[idx], idx);
          struct gen_group *struct_val = gen_spec_find_struct(spec, token);
-         decode_group(spec, struct_val, &p[idx], 0, false);
+         decode_group(spec, struct_val, &p[idx], 0);
          token = NULL;
       }
    }
@@ -166,7 +165,7 @@ static void
 decode_structure(struct gen_spec *spec, struct gen_group *strct,
                  const uint32_t *p)
 {
-   decode_group(spec, strct, p, 0, false);
+   decode_group(spec, strct, p, 0);
 }
 
 static void
@@ -788,7 +787,7 @@ parse_commands(struct gen_spec *spec, uint32_t *cmds, int size, int engine)
               gen_group_get_name(inst), reset_color);
 
       if (option_full_decode) {
-         decode_group(spec, inst, p, 1, true);
+         decode_group(spec, inst, p, 1);
 
          for (i = 0; i < ARRAY_LENGTH(custom_handlers); i++) {
             if (gen_group_get_opcode(inst) == custom_handlers[i].opcode)