summaryrefslogtreecommitdiffstats
path: root/src/intel/tools
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2017-11-11 22:17:30 -0800
committerKenneth Graunke <kenneth@whitecape.org>2017-11-13 17:10:38 -0800
commit00981e7c477e13e5328d7de1d548bfd1151f167c (patch)
tree553f2386a15e80c08371fa3720eddb8db8065fa0 /src/intel/tools
parent1898bf11a885c440fd861978f3ee204fe918b159 (diff)
intel/tools/error: Drop unused parameters from decode() helper.
Also change count from a pointer into a value. We were supposed to be resetting it to 0 (and failed to), but that's gone since we dropped the pre-ascii85 handling. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel/tools')
-rw-r--r--src/intel/tools/aubinator_error_decode.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c
index 279f1ac01cd..94436e957d4 100644
--- a/src/intel/tools/aubinator_error_decode.c
+++ b/src/intel/tools/aubinator_error_decode.c
@@ -233,13 +233,11 @@ static int next_program(void)
}
static void decode(struct gen_spec *spec,
- const char *buffer_name,
- const char *ring_name,
uint64_t gtt_offset,
uint32_t *data,
- int *count)
+ int count)
{
- uint32_t *p, *end = (data + *count);
+ uint32_t *p, *end = (data + count);
int length;
struct gen_group *inst;
uint64_t current_instruction_base_address = 0;
@@ -530,7 +528,7 @@ read_data_file(FILE *file)
}
}
} else {
- decode(spec, buffer_name, ring_name, gtt_offset, data, &count);
+ decode(spec, gtt_offset, data, count);
}
free(data);
continue;