aco: fix hash statistic

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: 897561b7b9 ("aco: add aco_postprocess_shader() helper")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17954>
(cherry picked from commit bd40e1b012)
This commit is contained in:
Rhys Perry 2022-08-09 11:42:10 +01:00 committed by Dylan Baker
parent f330229d98
commit e99965a073
2 changed files with 4 additions and 1 deletions

View file

@ -22,7 +22,7 @@
"description": "aco: fix hash statistic",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "897561b7b98ebbabe0ee68761ccb9302ddc8991f"
},

View file

@ -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;