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>
This commit is contained in:
Kenneth Graunke
2017-11-11 22:17:30 -08:00
parent 1898bf11a8
commit 00981e7c47

View File

@@ -233,13 +233,11 @@ static int next_program(void)
} }
static void decode(struct gen_spec *spec, static void decode(struct gen_spec *spec,
const char *buffer_name,
const char *ring_name,
uint64_t gtt_offset, uint64_t gtt_offset,
uint32_t *data, uint32_t *data,
int *count) int count)
{ {
uint32_t *p, *end = (data + *count); uint32_t *p, *end = (data + count);
int length; int length;
struct gen_group *inst; struct gen_group *inst;
uint64_t current_instruction_base_address = 0; uint64_t current_instruction_base_address = 0;
@@ -530,7 +528,7 @@ read_data_file(FILE *file)
} }
} }
} else { } else {
decode(spec, buffer_name, ring_name, gtt_offset, data, &count); decode(spec, gtt_offset, data, count);
} }
free(data); free(data);
continue; continue;