llvmpipe: Dump only the generated function.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 11 Aug 2009 12:10:15 +0000 (13:10 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 29 Aug 2009 08:21:29 +0000 (09:21 +0100)
src/gallium/drivers/llvmpipe/lp_state_blend.c

index c75214430f10ea3ce865a766a5d02c663f352cc3..be3e7b162915cc7a8286a6c2631b4a62fd0bdd08 100644 (file)
@@ -135,12 +135,12 @@ llvmpipe_create_blend_state(struct pipe_context *pipe,
                 "alpha_func",       debug_dump_blend_func  (blend->base.alpha_func, TRUE),
                 "alpha_src_factor", debug_dump_blend_factor(blend->base.alpha_src_factor, TRUE),
                 "alpha_dst_factor", debug_dump_blend_factor(blend->base.alpha_dst_factor, TRUE));
-   LLVMDumpModule(screen->module);
+   LLVMDumpValue(blend->function);
    debug_printf("\n");
 #endif
 
    if(LLVMVerifyFunction(blend->function, LLVMPrintMessageAction)) {
-      LLVMDumpModule(screen->module);
+      LLVMDumpValue(blend->function);
       abort();
    }