From 575700fbdcdde9c31ee6ccdd0369604b8ee2df91 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 16 Dec 2004 03:07:18 +0000 Subject: 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. --- src/mesa/shader/arbvertparse.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/shader/arbvertparse.c') 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; } -- cgit v1.2.3