From 357addfc45ebb8359e0678e2f3c449b79a8bc762 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Sat, 12 Aug 2006 00:11:05 +0000 Subject: Add comments explaining a couple "mystery" bits. --- src/mesa/drivers/dri/savage/savage_3d_reg.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/savage/savage_3d_reg.h b/src/mesa/drivers/dri/savage/savage_3d_reg.h index b7d1c3960a3..bc81d732967 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; -- cgit v1.2.3