aco: fix hash statistic
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 9 Aug 2022 10:42:10 +0000 (11:42 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 10 Aug 2022 11:56:29 +0000 (11:56 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
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

index f98a237..0354442 100644 (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;