diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 32adfeaf8d2..a3c2eb4fd70 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -8652,12 +8652,14 @@ fs_visitor::allocate_registers(bool allow_spilling) static const enum instruction_scheduler_mode pre_modes[] = { SCHEDULE_PRE, SCHEDULE_PRE_NON_LIFO, + SCHEDULE_NONE, SCHEDULE_PRE_LIFO, }; static const char *scheduler_mode_name[] = { "top-down", "non-lifo", + "none", "lifo" }; @@ -8697,7 +8699,8 @@ fs_visitor::allocate_registers(bool allow_spilling) invalidate_analysis(DEPENDENCY_INSTRUCTIONS); } - schedule_instructions(pre_modes[i]); + if (pre_modes[i] != SCHEDULE_NONE) + schedule_instructions(pre_modes[i]); this->shader_stats.scheduler_mode = scheduler_mode_name[i]; if (0) { diff --git a/src/intel/compiler/brw_shader.h b/src/intel/compiler/brw_shader.h index d2eb75d31e9..6afe9c72836 100644 --- a/src/intel/compiler/brw_shader.h +++ b/src/intel/compiler/brw_shader.h @@ -38,6 +38,7 @@ enum instruction_scheduler_mode { SCHEDULE_PRE_NON_LIFO, SCHEDULE_PRE_LIFO, SCHEDULE_POST, + SCHEDULE_NONE, }; #define UBO_START ((1 << 16) - 4)