Mesa (master): aco/tests: initialize debug function
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 13 12:44:06 UTC 2020
Module: Mesa
Branch: master
Commit: 6bf3c606be627d144bb9ef8e45ea1039e9b59241
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6bf3c606be627d144bb9ef8e45ea1039e9b59241
Author: Rhys Perry <pendingchaos02 at gmail.com>
Date: Wed Oct 7 14:35:21 2020 +0100
aco/tests: initialize debug function
aco_log() will print the message to stderr.
Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7045>
---
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;
More information about the mesa-commit
mailing list