Module: Mesa Branch: staging/22.2 Commit: e99965a0733c83765a299e0a530929e5ae8d9f3a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e99965a0733c83765a299e0a530929e5ae8d9f3a
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> (cherry picked from commit bd40e1b0127ffdb337667c9f524ab42999b875c9) --- .pick_status.json | 2 +- src/amd/compiler/aco_interface.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index df972dd5900..45b855ded53 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -22,7 +22,7 @@ "description": "aco: fix hash statistic", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "897561b7b98ebbabe0ee68761ccb9302ddc8991f" }, 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;
