diff options
author | Matt Turner <[email protected]> | 2016-10-17 14:12:28 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2019-07-30 14:35:43 -0700 |
commit | 46a3ea06be389f94db69e7a2ba67033b59c8d333 (patch) | |
tree | 4e3f7d70c53107ad5ccfe6a56e3ffa8e9a10e1ab /src/intel/compiler/brw_fs.cpp | |
parent | dabb5d4bee0705deba29e96725b6f8a63943c28e (diff) |
i965/fs: Print the scheduler mode.
Line wrap some awfully long lines while we are here.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_fs.cpp')
-rw-r--r-- | src/intel/compiler/brw_fs.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index c5d30a0e7ed..89a6a7f6974 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -7213,6 +7213,12 @@ fs_visitor::allocate_registers(unsigned min_dispatch_width, bool allow_spilling) SCHEDULE_PRE_LIFO, }; + static const char *scheduler_mode_name[] = { + "top-down", + "non-lifo", + "lifo" + }; + bool spill_all = allow_spilling && (INTEL_DEBUG & DEBUG_SPILL_FS); /* Try each scheduling heuristic to see if it can successfully register @@ -7221,6 +7227,7 @@ fs_visitor::allocate_registers(unsigned min_dispatch_width, bool allow_spilling) */ for (unsigned i = 0; i < ARRAY_SIZE(pre_modes); i++) { schedule_instructions(pre_modes[i]); + this->shader_stats.scheduler_mode = scheduler_mode_name[i]; if (0) { assign_regs_trivial(); |