summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2006-08-12 00:11:05 +0000
committerIan Romanick <idr@us.ibm.com>2006-08-12 00:11:05 +0000
commit357addfc45ebb8359e0678e2f3c449b79a8bc762 (patch)
treeb313e4635afcce272c8eaf91d389d59ff089577a /src
parent32a9e9be0c9626fb15ae7c721a15bcf19330e13a (diff)
downloadexternal_mesa3d-357addfc45ebb8359e0678e2f3c449b79a8bc762.zip
external_mesa3d-357addfc45ebb8359e0678e2f3c449b79a8bc762.tar.gz
external_mesa3d-357addfc45ebb8359e0678e2f3c449b79a8bc762.tar.bz2
Add comments explaining a couple "mystery" bits.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/savage/savage_3d_reg.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/savage/savage_3d_reg.h b/src/mesa/drivers/dri/savage/savage_3d_reg.h
index b7d1c39..bc81d73 100644
--- a/src/mesa/drivers/dri/savage/savage_3d_reg.h
+++ b/src/mesa/drivers/dri/savage/savage_3d_reg.h
@@ -290,6 +290,14 @@ typedef union
struct
{
unsigned dstAlphaMode : 3;
+
+ /**
+ * This bit enables \c GL_FUNC_SUBTRACT. Like most DirectX oriented
+ * hardware, there's no way to do \c GL_FUNC_REVERSE_SUBTRACT.
+ *
+ * \todo
+ * Add support for \c GL_FUNC_SUBTRACT!
+ */
unsigned dstMinusSrc : 1;
unsigned srcAlphaMode : 3;
unsigned binaryFinalAlpha : 1;
@@ -327,7 +335,11 @@ typedef union
unsigned texBlendCtrl : 3;
unsigned flushPdDestWrites : 1;
unsigned flushPdZbufWrites : 1;
- /* havn't found an equivalent for Savage4. Utah-driver sets it to 0. */
+
+ /**
+ * Disable perspective correct interpolation for vertex color, vertex
+ * fog, and vertex alpha. For OpenGL, this should \b always be zero.
+ */
unsigned interpMode : 1;
}ni;
u_int32_t ui;