[Mesa-dev] [PATCH 17/47] mesa: remove FEATURE_rastpos define.

Oliver McFadden oliver.mcfadden at linux.intel.com
Thu Sep 13 01:18:46 PDT 2012


Signed-off-by: Oliver McFadden <oliver.mcfadden at linux.intel.com>
---
 src/mesa/main/mfeatures.h                |    1 -
 src/mesa/main/rastpos.c                  |    6 ------
 src/mesa/main/rastpos.h                  |   11 -----------
 src/mesa/state_tracker/st_cb_rasterpos.c |    4 ----
 src/mesa/state_tracker/st_cb_rasterpos.h |   10 ----------
 5 files changed, 0 insertions(+), 32 deletions(-)

diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h
index cb7cce1..8062628 100644
--- a/src/mesa/main/mfeatures.h
+++ b/src/mesa/main/mfeatures.h
@@ -84,7 +84,6 @@
 #define FEATURE_remap_table               0
 #endif
 
-#define FEATURE_rastpos                   FEATURE_GL
 #define FEATURE_texture_fxt1              FEATURE_GL
 #define FEATURE_texture_s3tc              FEATURE_GL
 
diff --git a/src/mesa/main/rastpos.c b/src/mesa/main/rastpos.c
index a1f6f42..ab8e2c1 100644
--- a/src/mesa/main/rastpos.c
+++ b/src/mesa/main/rastpos.c
@@ -39,9 +39,6 @@
 #include "main/dispatch.h"
 
 
-#if FEATURE_rastpos
-
-
 /**
  * Helper function for all the RasterPos functions.
  */
@@ -533,9 +530,6 @@ _mesa_init_rastpos_dispatch(struct _glapi_table *disp)
 }
 
 
-#endif /* FEATURE_rastpos */
-
-
 /**********************************************************************/
 /** \name Initialization                                              */
 /**********************************************************************/
diff --git a/src/mesa/main/rastpos.h b/src/mesa/main/rastpos.h
index cdd94a6..9bb04cc 100644
--- a/src/mesa/main/rastpos.h
+++ b/src/mesa/main/rastpos.h
@@ -38,20 +38,9 @@
 struct _glapi_table;
 struct gl_context;
 
-#if FEATURE_rastpos
-
 extern void
 _mesa_init_rastpos_dispatch(struct _glapi_table *disp);
 
-#else /* FEATURE_rastpos */
-
-static inline void
-_mesa_init_rastpos_dispatch(struct _glapi_table *disp)
-{
-}
-
-#endif /* FEATURE_rastpos */
-
 extern void 
 _mesa_init_rastpos(struct gl_context *ctx);
 
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c
index 8337f46..fb4a62e 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.c
+++ b/src/mesa/state_tracker/st_cb_rasterpos.c
@@ -50,8 +50,6 @@
 #include "vbo/vbo.h"
 
 
-#if FEATURE_rastpos
-
 /**
  * Our special drawing pipeline stage (replaces rasterization).
  */
@@ -275,5 +273,3 @@ void st_init_rasterpos_functions(struct dd_function_table *functions)
 {
    functions->RasterPos = st_RasterPos;
 }
-
-#endif /* FEATURE_rastpos */
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.h b/src/mesa/state_tracker/st_cb_rasterpos.h
index b61411b..bfd3e41 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.h
+++ b/src/mesa/state_tracker/st_cb_rasterpos.h
@@ -34,17 +34,7 @@
 
 struct dd_function_table;
 
-#if FEATURE_rastpos
-
 extern void st_init_rasterpos_functions(struct dd_function_table *functions);
 
-#else
-
-static INLINE void
-st_init_rasterpos_functions(struct dd_function_table *functions)
-{
-}
-
-#endif /* FEATURE_rastpos */
 
 #endif /* ST_CB_RASTERPOS_H */
-- 
1.7.8.6



More information about the mesa-dev mailing list