diff --git a/src/intel/compiler/brw_fs_generator.cpp b/src/intel/compiler/brw_fs_generator.cpp index 8328ae6c9f7..dc1f212c003 100644 --- a/src/intel/compiler/brw_fs_generator.cpp +++ b/src/intel/compiler/brw_fs_generator.cpp @@ -191,9 +191,9 @@ fs_generator::fs_generator(const struct brw_compiler *compiler, void *log_data, : compiler(compiler), log_data(log_data), devinfo(compiler->devinfo), - prog_data(prog_data), + prog_data(prog_data), dispatch_width(0), runtime_check_aads_emit(runtime_check_aads_emit), debug_flag(false), - stage(stage), mem_ctx(mem_ctx) + shader_name(NULL), stage(stage), mem_ctx(mem_ctx) { p = rzalloc(mem_ctx, struct brw_codegen); brw_init_codegen(devinfo, p, mem_ctx); diff --git a/src/intel/compiler/brw_fs_reg_allocate.cpp b/src/intel/compiler/brw_fs_reg_allocate.cpp index ee758009cad..40d0f30e223 100644 --- a/src/intel/compiler/brw_fs_reg_allocate.cpp +++ b/src/intel/compiler/brw_fs_reg_allocate.cpp @@ -429,6 +429,13 @@ public: /* Get payload IP information */ payload_last_use_ip = ralloc_array(mem_ctx, int, payload_node_count); + node_count = 0; + first_payload_node = 0; + first_mrf_hack_node = 0; + grf127_send_hack_node = 0; + first_vgrf_node = 0; + first_spill_node = 0; + spill_vgrf_ip = NULL; spill_vgrf_ip_alloc = 0; spill_node_count = 0; diff --git a/src/intel/compiler/brw_fs_visitor.cpp b/src/intel/compiler/brw_fs_visitor.cpp index d8918858a8d..3a105577a33 100644 --- a/src/intel/compiler/brw_fs_visitor.cpp +++ b/src/intel/compiler/brw_fs_visitor.cpp @@ -950,9 +950,11 @@ fs_visitor::init() this->prog_data = this->stage_prog_data; this->failed = false; + this->fail_msg = NULL; this->nir_locals = NULL; this->nir_ssa_values = NULL; + this->nir_system_values = NULL; memset(&this->payload, 0, sizeof(this->payload)); this->source_depth_to_render_target = false; diff --git a/src/intel/compiler/brw_schedule_instructions.cpp b/src/intel/compiler/brw_schedule_instructions.cpp index 7a0fb1ac684..e0f8f4fa7c3 100644 --- a/src/intel/compiler/brw_schedule_instructions.cpp +++ b/src/intel/compiler/brw_schedule_instructions.cpp @@ -544,6 +544,8 @@ public: this->instructions.make_empty(); this->post_reg_alloc = (mode == SCHEDULE_POST); this->mode = mode; + this->reg_pressure = 0; + this->block_idx = 0; if (!post_reg_alloc) { this->reg_pressure_in = rzalloc_array(mem_ctx, int, block_count);