summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/nvfragprog.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-10-30 21:23:23 +0000
committerBrian Paul <[email protected]>2005-10-30 21:23:23 +0000
commit7aebaf3debc6482b49faee5ed38418ad3d35fc30 (patch)
treed3794359358ea33e561dd8bdbc84c34cfc229688 /src/mesa/shader/nvfragprog.h
parent094a1ddf2498d598da5abaef6d6ed53ec2dbe6dc (diff)
Lots of clean-up in arb program parser.
Use new _mesa_init_fp/vp_instruction() function to initialize instructions.
Diffstat (limited to 'src/mesa/shader/nvfragprog.h')
-rw-r--r--src/mesa/shader/nvfragprog.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/mesa/shader/nvfragprog.h b/src/mesa/shader/nvfragprog.h
index a7149cfdb94..99ec20bb828 100644
--- a/src/mesa/shader/nvfragprog.h
+++ b/src/mesa/shader/nvfragprog.h
@@ -1,8 +1,8 @@
/*
* Mesa 3-D graphics library
- * Version: 6.3
+ * Version: 6.5
*
- * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2005 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"),
@@ -36,10 +36,15 @@
#include "config.h"
#include "mtypes.h"
-/* output registers */
-#define FRAG_OUTPUT_COLR 0
-#define FRAG_OUTPUT_COLH 1
-#define FRAG_OUTPUT_DEPR 2
+
+/**
+ * Fragment program output registers.
+ * Note: when we fully suppport GL_ARB_draw_buffers we'll have more than
+ * one output color.
+ */
+#define FRAG_OUTPUT_COLR 0 /* fragment color */
+#define FRAG_OUTPUT_COLH 1 /* fragment color, half precision (NV) */
+#define FRAG_OUTPUT_DEPR 2 /* depth/Z */
/* condition codes */
@@ -165,4 +170,8 @@ struct fp_instruction
};
+extern void
+_mesa_init_fp_instruction(struct fp_instruction *inst);
+
+
#endif