diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-12-16 03:07:18 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-12-16 03:07:18 +0000 |
commit | 575700fbdcdde9c31ee6ccdd0369604b8ee2df91 (patch) | |
tree | 2bc35036e7f335f2dfa7211334108ce8bd34fbb3 /src/mesa/shader/arbvertparse.c | |
parent | c75900e7a2ad17ecf832e7e9aa41e714a1a78f2a (diff) |
Experimental PRINT instruction for NV_vertex_program.
Basically, this lets you put a "PRINT 'mesage', register;" statement in a
vertex program to aid in debugging.
Diffstat (limited to 'src/mesa/shader/arbvertparse.c')
-rw-r--r-- | src/mesa/shader/arbvertparse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/shader/arbvertparse.c b/src/mesa/shader/arbvertparse.c index fb6a642b64..33086c2f72 100644 --- a/src/mesa/shader/arbvertparse.c +++ b/src/mesa/shader/arbvertparse.c @@ -44,6 +44,10 @@ #include "arbprogparse.h" +/** + * XXX this is probably redundant. We've already got code like this + * in the nvvertparse.c file. Combine/clean-up someday. + */ static GLvoid debug_vp_inst(GLint num, struct vp_instruction *vp) { @@ -135,6 +139,9 @@ debug_vp_inst(GLint num, struct vp_instruction *vp) case VP_OPCODE_SWZ: fprintf(stderr, "VP_OPCODE_SWZ"); break; + case VP_OPCODE_PRINT: + fprintf(stderr, "VP_OPCODE_PRINT"); break; + case VP_OPCODE_END: fprintf(stderr, "VP_OPCODE_END"); break; } |