intel/decoders: silence uninitialized variable warnings in gen_print_batch()
authorBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 15:49:44 +0000 (08:49 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 17:23:11 +0000 (10:23 -0700)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_batch_decoder.c

index ff898d8222cd81cc7f52d4b1cd5b56c7b71f5e3a..5cac9836cb166e9df0a96361bc248ef7f8a76110 100644 (file)
@@ -874,9 +874,9 @@ gen_print_batch(struct gen_batch_decode_ctx *ctx,
       }
 
       if (strcmp(inst_name, "MI_BATCH_BUFFER_START") == 0) {
-         uint64_t next_batch_addr;
+         uint64_t next_batch_addr = 0;
          bool ppgtt = false;
-         bool second_level;
+         bool second_level = false;
          struct gen_field_iterator iter;
          gen_field_iterator_init(&iter, inst, p, 0, false);
          while (gen_field_iterator_next(&iter)) {