draw: (trivial) dump tgsi for geometry shaders with GALLIVM_DEBUG_TGSI
authorRoland Scheidegger <sroland@vmware.com>
Sat, 10 Aug 2013 01:26:54 +0000 (03:26 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 12 Aug 2013 21:33:00 +0000 (23:33 +0200)
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

index 03f863178bcc49384a988e058b4623036d570896..68f636957d0a23cd4a563639cd9fd81797ceae84 100644 (file)
@@ -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,