Module: Mesa Branch: master Commit: ec6bad140b780aaa10f7c02c8e2eb46f12671d4d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec6bad140b780aaa10f7c02c8e2eb46f12671d4d
Author: Pierre Moreau <[email protected]> Date: Tue May 5 13:14:26 2020 +0200 clover/spirv: Print linked SPIR-V module if asked Signed-off-by: Pierre Moreau <[email protected]> Reviewed-by: Serge Martin <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5038> --- src/gallium/frontends/clover/spirv/invocation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/frontends/clover/spirv/invocation.cpp b/src/gallium/frontends/clover/spirv/invocation.cpp index 2adfc668f99..e4b1565288f 100644 --- a/src/gallium/frontends/clover/spirv/invocation.cpp +++ b/src/gallium/frontends/clover/spirv/invocation.cpp @@ -654,6 +654,9 @@ clover::spirv::link_program(const std::vector<module> &modules, if (!is_valid_spirv(final_binary, opencl_version, r_log)) throw error(CL_LINK_PROGRAM_FAILURE); + if (has_flag(llvm::debug::spirv)) + llvm::debug::log(".spvasm", spirv::print_module(final_binary, dev.device_version())); + for (const auto &mod : modules) m.syms.insert(m.syms.end(), mod.syms.begin(), mod.syms.end()); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
