diff options
author | Nicolai Hähnle <nhaehnle@gmail.com> | 2009-07-27 19:29:21 +0200 |
---|---|---|
committer | Nicolai Hähnle <nhaehnle@gmail.com> | 2009-07-27 22:51:39 +0200 |
commit | 59fff53492fb385f8567c163aed014fdd9c0f8fa (patch) | |
tree | 4d9af0f5cbb72168b76124fe30ddc51d254a6112 /src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c | |
parent | 6bc0e1054a212ec80408f685237b0e0c1e4929f0 (diff) |
r300/compiler: Add vertex program code dumper from Gallium driver
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c index 339be414cf..fc9c8f805a 100644 --- a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c +++ b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c @@ -607,4 +607,9 @@ void r3xx_compile_vertex_program(struct r300_vertex_program_compiler* compiler) compiler->code->InputsRead = compiler->Base.Program.InputsRead; compiler->code->OutputsWritten = compiler->Base.Program.OutputsWritten; + + if (compiler->Base.Debug) { + printf("Final vertex program code:\n"); + r300_vertex_program_dump(compiler->code); + } } |