summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2019-03-08 08:49:44 -0700
committerBrian Paul <[email protected]>2019-03-08 10:23:11 -0700
commitb5ea56e411b3bab17ef0d4658f2c0bf23e8b91dc (patch)
tree40444e8f7b606b9839e6cd79ab97f6f52aa11a15 /src/intel
parente5e2be3c737d6770b2973e2c9a84ebba9498487b (diff)
intel/decoders: silence uninitialized variable warnings in gen_print_batch()
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/common/gen_batch_decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c
index ff898d8222c..5cac9836cb1 100644
--- a/src/intel/common/gen_batch_decoder.c
+++ b/src/intel/common/gen_batch_decoder.c
@@ -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)) {