From 6bf3c606be627d144bb9ef8e45ea1039e9b59241 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 7 Oct 2020 14:35:21 +0100 Subject: [PATCH] aco/tests: initialize debug function aco_log() will print the message to stderr. Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/compiler/tests/helpers.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/compiler/tests/helpers.cpp b/src/amd/compiler/tests/helpers.cpp index 05395cdfa89..55843c163aa 100644 --- a/src/amd/compiler/tests/helpers.cpp +++ b/src/amd/compiler/tests/helpers.cpp @@ -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;