summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/nvvertprog.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-12-16 03:07:18 +0000
committerBrian Paul <[email protected]>2004-12-16 03:07:18 +0000
commit575700fbdcdde9c31ee6ccdd0369604b8ee2df91 (patch)
tree2bc35036e7f335f2dfa7211334108ce8bd34fbb3 /src/mesa/shader/nvvertprog.h
parentc75900e7a2ad17ecf832e7e9aa41e714a1a78f2a (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/nvvertprog.h')
-rw-r--r--src/mesa/shader/nvvertprog.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesa/shader/nvvertprog.h b/src/mesa/shader/nvvertprog.h
index 820b3e5692b..583b9012079 100644
--- a/src/mesa/shader/nvvertprog.h
+++ b/src/mesa/shader/nvvertprog.h
@@ -1,8 +1,8 @@
/*
* Mesa 3-D graphics library
- * Version: 5.1
+ * Version: 6.3
*
- * Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -66,7 +66,9 @@ enum vp_opcode
VP_OPCODE_LG2,
VP_OPCODE_POW,
VP_OPCODE_XPD,
- VP_OPCODE_SWZ
+ VP_OPCODE_SWZ,
+ /* Special Mesa opcodes */
+ VP_OPCODE_PRINT
};
@@ -101,6 +103,7 @@ struct vp_instruction
#if FEATURE_MESA_program_debug
GLint StringPos;
#endif
+ void *Data; /* some arbitrary data, only used for PRINT instruction now */
};