From: Roland Scheidegger Date: Sat, 10 Aug 2013 01:26:54 +0000 (+0200) Subject: draw: (trivial) dump tgsi for geometry shaders with GALLIVM_DEBUG_TGSI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84fce45321166e55c03c95ece29d4c27de6740a6;p=mesa.git draw: (trivial) dump tgsi for geometry shaders with GALLIVM_DEBUG_TGSI And dump the variant key too (same as vs does). Just so I can stop wondering why I see the tgsi dump for fs and vs but not gs... --- diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index 03f863178bc..68f636957d0 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -2177,6 +2177,11 @@ draw_gs_llvm_generate(struct draw_llvm *llvm, system_values.prim_id = LLVMBuildLoad(builder, prim_id_ptr, "prim_id");; } + if (gallivm_debug & (GALLIVM_DEBUG_TGSI | GALLIVM_DEBUG_IR)) { + tgsi_dump(tokens, 0); + draw_gs_llvm_dump_variant_key(&variant->key); + } + lp_build_tgsi_soa(variant->gallivm, tokens, gs_type,