projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
832026f
)
minor work in _mesa_print_program()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 8 Nov 2005 14:42:52 +0000
(14:42 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 8 Nov 2005 14:42:52 +0000
(14:42 +0000)
src/mesa/shader/program.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/program.c
b/src/mesa/shader/program.c
index
d762205
..
a77c447
100644
(file)
--- a/
src/mesa/shader/program.c
+++ b/
src/mesa/shader/program.c
@@
-1179,7
+1179,16
@@
_mesa_print_program(GLuint count, const struct prog_instruction *inst)
switch (inst[i].Opcode) {
case OPCODE_PRINT:
- _mesa_printf("PRINT %s\n", inst->Data);
+ _mesa_printf("PRINT '%s'", inst[i].Data);
+ if (inst->SrcReg[0].File != PROGRAM_UNDEFINED) {
+ _mesa_printf(", ");
+ _mesa_printf("%s[%d]%s",
+ program_file_string(inst[i].SrcReg[0].File),
+ inst[i].SrcReg[0].Index,
+ swizzle_string(inst[i].SrcReg[0].Swizzle,
+ inst[i].SrcReg[0].NegateBase));
+ }
+ _mesa_printf(";\n");
break;
/* XXX check for a bunch of other special-case instructions */
default: