projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62450b3
)
llvmpipe: code to dump bytecode to file (disabled)
author
Brian Paul
<brianp@vmware.com>
Thu, 14 Oct 2010 22:31:54 +0000
(16:31 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 14 Oct 2010 23:28:24 +0000
(17:28 -0600)
src/gallium/drivers/llvmpipe/lp_state_fs.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_state_fs.c
b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 6e3c27e78e95170781fbf4781e86e7255d7d668c..d2fbe27708347502f515fd1bbc20b3cf20e406bf 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/
src/gallium/drivers/llvmpipe/lp_state_fs.c
@@
-99,6
+99,7
@@
#include <llvm-c/Analysis.h>
+#include <llvm-c/BitWriter.h>
static unsigned fs_no = 0;
@@
-778,6
+779,11
@@
generate_fragment(struct llvmpipe_context *lp,
debug_printf("\n");
}
+ /* Dump byte code to a file */
+ if (0) {
+ LLVMWriteBitcodeToFile(lp_build_module, "llvmpipe.bc");
+ }
+
/*
* Translate the LLVM IR into machine code.
*/