Signed-off-by: Pierre Moreau <dev@pmoreau.org>
Reviewed-by: Serge Martin <edb@sigluy.net>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5038>
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());