diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index fbc94f0dcfe..ad3f6ffa0b4 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -6798,8 +6798,7 @@ fs_visitor::allocate_registers(bool allow_spilling) invalidate_analysis(DEPENDENCY_INSTRUCTIONS); } - if (pre_modes[i] != SCHEDULE_NONE) - schedule_instructions(pre_modes[i]); + schedule_instructions(pre_modes[i]); this->shader_stats.scheduler_mode = scheduler_mode_name[i]; if (0) { diff --git a/src/intel/compiler/brw_schedule_instructions.cpp b/src/intel/compiler/brw_schedule_instructions.cpp index 594ae089256..b132f67e0e5 100644 --- a/src/intel/compiler/brw_schedule_instructions.cpp +++ b/src/intel/compiler/brw_schedule_instructions.cpp @@ -1984,6 +1984,9 @@ instruction_scheduler::run(cfg_t *cfg) void fs_visitor::schedule_instructions(instruction_scheduler_mode mode) { + if (mode == SCHEDULE_NONE) + return; + int grf_count; if (mode == SCHEDULE_POST) grf_count = grf_used;