mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
radeonsi: Dump TGSI code prior to doing TGSI->LLVM conversion.
This way if the conversion fails, we know what the TGSI shader looks like.
This commit is contained in:
parent
b546aebae9
commit
185fc9a5ef
1 changed files with 6 additions and 1 deletions
|
|
@ -574,13 +574,18 @@ int si_pipe_shader_create(
|
|||
|
||||
shader->shader.nr_cbufs = rctx->nr_cbufs;
|
||||
|
||||
/* Dump TGSI code before doing TGSI->LLVM conversion in case the
|
||||
* conversion fails. */
|
||||
if (dump) {
|
||||
tgsi_dump(shader->tokens, 0);
|
||||
}
|
||||
|
||||
lp_build_tgsi_llvm(bld_base, shader->tokens);
|
||||
|
||||
radeon_llvm_finalize_module(&si_shader_ctx.radeon_bld);
|
||||
|
||||
mod = bld_base->base.gallivm->module;
|
||||
if (dump) {
|
||||
tgsi_dump(shader->tokens, 0);
|
||||
LLVMDumpModule(mod);
|
||||
}
|
||||
radeon_llvm_compile(mod, &inst_bytes, &inst_byte_count, "SI", dump);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue