Mesa (master): intel/decoders: silence uninitialized variable warnings in gen_print_batch()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Mar 8 17:28:26 UTC 2019
Module: Mesa
Branch: master
Commit: b5ea56e411b3bab17ef0d4658f2c0bf23e8b91dc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b5ea56e411b3bab17ef0d4658f2c0bf23e8b91dc
Author: Brian Paul <brianp at vmware.com>
Date: Fri Mar 8 08:49:44 2019 -0700
intel/decoders: silence uninitialized variable warnings in gen_print_batch()
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
src/intel/common/gen_batch_decoder.c | 4 ++--
1 file 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)) {
More information about the mesa-commit
mailing list