aco/tests: initialize debug function

aco_log() will print the message to stderr.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7045>
This commit is contained in:
Rhys Perry 2020-10-07 14:35:21 +01:00 committed by Marge Bot
parent 966732e8ca
commit 6bf3c606be
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ void create_program(enum chip_class chip_class, Stage stage, unsigned wave_size,
program.reset(new Program);
aco::init_program(program.get(), stage, &info, chip_class, family, &config);
program->debug.func = nullptr;
program->debug.private_data = nullptr;
Block *block = program->create_and_insert_block();
block->kind = block_kind_top_level;