diff options
author | Roland Scheidegger <[email protected]> | 2013-08-10 03:26:54 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-08-12 23:33:00 +0200 |
commit | 84fce45321166e55c03c95ece29d4c27de6740a6 (patch) | |
tree | 36572de20626defacb0a34562089519812e50180 /src/gallium/auxiliary | |
parent | 8c5283dc177ec8538d1154e71f915aac2066a093 (diff) |
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...
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, |