Mesa (master): mesa: remove unused ENABLE_TEXGENx, ENABLE_TEXMATx flags

Brian Paul brianp at kemper.freedesktop.org
Sun Feb 22 22:46:11 UTC 2009


Module: Mesa
Branch: master
Commit: d909dbcc43c5c1d51a3946488e68a7cd1fbfe920
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d909dbcc43c5c1d51a3946488e68a7cd1fbfe920

Author: Brian Paul <brianp at vmware.com>
Date:   Sun Feb 22 14:27:21 2009 -0700

mesa: remove unused ENABLE_TEXGENx, ENABLE_TEXMATx flags

---

 src/mesa/main/mtypes.h |   31 ++++++++-----------------------
 1 files changed, 8 insertions(+), 23 deletions(-)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 302b7aa..73dccf7 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -1208,27 +1208,12 @@ enum {
 /*@}*/
 
 
-/* A selection of state flags to make driver and module's lives easier. */
-#define ENABLE_TEXGEN0        0x1
-#define ENABLE_TEXGEN1        0x2
-#define ENABLE_TEXGEN2        0x4
-#define ENABLE_TEXGEN3        0x8
-#define ENABLE_TEXGEN4        0x10
-#define ENABLE_TEXGEN5        0x20
-#define ENABLE_TEXGEN6        0x40
-#define ENABLE_TEXGEN7        0x80
-
-#define ENABLE_TEXMAT0        0x1	/* Ie. not the identity matrix */
-#define ENABLE_TEXMAT1        0x2
-#define ENABLE_TEXMAT2        0x4
-#define ENABLE_TEXMAT3        0x8
-#define ENABLE_TEXMAT4        0x10
-#define ENABLE_TEXMAT5        0x20
-#define ENABLE_TEXMAT6        0x40
-#define ENABLE_TEXMAT7        0x80
-
-#define ENABLE_TEXGEN(i) (ENABLE_TEXGEN0 << (i))
-#define ENABLE_TEXMAT(i) (ENABLE_TEXMAT0 << (i))
+
+/** Tex-gen enabled for texture unit? */
+#define ENABLE_TEXGEN(unit) (1 << (unit))
+
+/** Non-identity texture matrix for texture unit? */
+#define ENABLE_TEXMAT(unit) (1 << (unit))
 
 
 /**
@@ -1573,8 +1558,8 @@ struct gl_texture_attrib
    GLbitfield _EnabledUnits;  /**< one bit set for each really-enabled unit */
    GLbitfield _EnabledCoordUnits;   /**< one bit per enabled coordinate unit */
    GLbitfield _GenFlags;            /**< for texgen */
-   GLbitfield _TexGenEnabled;
-   GLbitfield _TexMatEnabled;
+   GLbitfield _TexGenEnabled;  /**< Mask of ENABLE_TEXGEN flags */
+   GLbitfield _TexMatEnabled;  /**< Mask of ENABLE_TEXMAT flags */
    /**@}*/
 
    struct gl_texture_unit Unit[MAX_TEXTURE_UNITS];




More information about the mesa-commit mailing list