Module: Mesa Branch: main Commit: bd40e1b0127ffdb337667c9f524ab42999b875c9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd40e1b0127ffdb337667c9f524ab42999b875c9
Author: Rhys Perry <[email protected]> Date: Tue Aug 9 11:42:10 2022 +0100 aco: fix hash statistic Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Fixes: 897561b7b98 ("aco: add aco_postprocess_shader() helper") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17954> --- src/amd/compiler/aco_interface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/compiler/aco_interface.cpp b/src/amd/compiler/aco_interface.cpp index f98a2375390..03544424c2e 100644 --- a/src/amd/compiler/aco_interface.cpp +++ b/src/amd/compiler/aco_interface.cpp @@ -244,6 +244,9 @@ aco_compile_shader(const struct aco_compiler_options* options, std::vector<uint32_t> code; unsigned exec_size = aco::emit_program(program.get(), code); + if (program->collect_statistics) + aco::collect_postasm_stats(program.get(), code); + bool get_disasm = options->dump_shader || options->record_ir; std::string disasm;
