radv, aco: collect statistics if requested but executables are not

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2965>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2965>
This commit is contained in:
Rhys Perry
2020-03-19 15:09:31 +00:00
committed by Marge Bot
parent 507956ed04
commit 7e6aec6687
4 changed files with 22 additions and 17 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ void aco_compile_shader(unsigned shader_count,
ac_shader_config config = {0};
std::unique_ptr<aco::Program> program{new aco::Program};
program->collect_statistics = args->options->record_ir;
program->collect_statistics = args->options->record_stats;
if (program->collect_statistics)
memset(program->statistics, 0, sizeof(program->statistics));