From 84fce45321166e55c03c95ece29d4c27de6740a6 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Sat, 10 Aug 2013 03:26:54 +0200 Subject: [PATCH] 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... --- src/gallium/auxiliary/draw/draw_llvm.c | 5 +++++ 1 file changed, 5 insertions(+) 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, -- 2.30.2