mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 20:00:24 +01:00
llvmpipe: dump fragment shader ir and asm when LP_DEBUG=fs
Better than GALLIVM_DEBUG if you're only interested in fragment shaders.
This commit is contained in:
parent
6da29f3611
commit
954965366f
1 changed files with 2 additions and 2 deletions
|
|
@ -730,7 +730,7 @@ generate_fragment(struct llvmpipe_context *lp,
|
|||
/* Apply optimizations to LLVM IR */
|
||||
LLVMRunFunctionPassManager(screen->pass, function);
|
||||
|
||||
if (gallivm_debug & GALLIVM_DEBUG_IR) {
|
||||
if ((gallivm_debug & GALLIVM_DEBUG_IR) || (LP_DEBUG & DEBUG_FS)) {
|
||||
/* Print the LLVM IR to stderr */
|
||||
lp_debug_dump_value(function);
|
||||
debug_printf("\n");
|
||||
|
|
@ -744,7 +744,7 @@ generate_fragment(struct llvmpipe_context *lp,
|
|||
|
||||
variant->jit_function[partial_mask] = (lp_jit_frag_func)pointer_to_func(f);
|
||||
|
||||
if (gallivm_debug & GALLIVM_DEBUG_ASM) {
|
||||
if ((gallivm_debug & GALLIVM_DEBUG_ASM) || (LP_DEBUG & DEBUG_FS)) {
|
||||
lp_disassemble(f);
|
||||
}
|
||||
lp_func_delete_body(function);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue