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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user