summaryrefslogtreecommitdiff
path: root/src/intel/tools/aubinator.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2017-03-19 21:30:37 -0700
committerKenneth Graunke <kenneth@whitecape.org>2017-03-20 11:20:51 -0700
commita8d4184b007bd40c1a77a12dc0fc0f5f49955e03 (patch)
tree93e6fbb80edb080a1ead5e7bc57ef0271b0a9bc3 /src/intel/tools/aubinator.c
parent7f21cb56b8530d44fe9c7ad7cb624a3ed047c5e9 (diff)
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 <lionel.g.landwerlin@intel.com>
Diffstat (limited to 'src/intel/tools/aubinator.c')
-rw-r--r--src/intel/tools/aubinator.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 6a37da11650..05eb3d1be94 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)