intel/tools/error: Drop unused parameters from decode() helper.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 12 Nov 2017 06:17:30 +0000 (22:17 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Nov 2017 01:10:38 +0000 (17:10 -0800)
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>
src/intel/tools/aubinator_error_decode.c

index 279f1ac01cd815b09c5e6b21469e2bd9343e80c1..94436e957d412acb687360dfdd9db141e004d10e 100644 (file)
@@ -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;