Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9599>
disable instructions scheduling
``perfinfo``
print information used to calculate some pipeline statistics
+ ``liveinfo``
+ print liveness and register demand information before scheduling
radeonsi driver environment variables
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if (program->collect_statistics)
aco::collect_presched_stats(program.get());
+ if ((aco::debug_flags & aco::DEBUG_LIVE_INFO) && args->options->dump_shader)
+ aco_print_program(program.get(), stderr, live_vars, aco::print_live_vars | aco::print_kill);
+
if (!args->is_trap_handler_shader) {
if (!args->options->disable_optimizations &&
!(aco::debug_flags & aco::DEBUG_NO_SCHED))
{"noopt", DEBUG_NO_OPT},
{"nosched", DEBUG_NO_SCHED},
{"perfinfo", DEBUG_PERF_INFO},
+ {"liveinfo", DEBUG_LIVE_INFO},
{NULL, 0}
};
DEBUG_NO_OPT = 0x20,
DEBUG_NO_SCHED = 0x40,
DEBUG_PERF_INFO = 0x80,
+ DEBUG_LIVE_INFO = 0x100,
};
/**