Module: Mesa
Branch: master
Commit: a8d4184b007bd40c1a77a12dc0fc0f5f49955e03
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8d4184b007bd40c1a77a12dc0fc0f5f49955e03

Author: Kenneth Graunke <[email protected]>
Date:   Sun Mar 19 21:30:37 2017 -0700

aubinator: Drop unused print_dword_headers flag.

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 <[email protected]>

---

 src/intel/tools/aubinator.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 6a37da1165..05eb3d1be9 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -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)

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to