mesa: remove FEATURE_queryobj define.
authorOliver McFadden <oliver.mcfadden@linux.intel.com>
Tue, 11 Sep 2012 06:19:19 +0000 (09:19 +0300)
committerOliver McFadden <oliver.mcfadden@linux.intel.com>
Sat, 15 Sep 2012 09:56:53 +0000 (12:56 +0300)
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/dlist.c
src/mesa/main/extensions.c
src/mesa/main/mfeatures.h
src/mesa/main/queryobj.c
src/mesa/main/queryobj.h
src/mesa/state_tracker/st_cb_queryobj.c
src/mesa/state_tracker/st_cb_queryobj.h

index e4c19908faf04e540f9e9130858f82c251aeddca..b3c605e71de73ae1dc27b52ad236823da9842e87 100644 (file)
@@ -5331,8 +5331,6 @@ save_ProgramStringARB(GLenum target, GLenum format, GLsizei len,
 #endif /* FEATURE_ARB_vertex_program || FEATURE_ARB_fragment_program */
 
 
-#if FEATURE_queryobj
-
 static void GLAPIENTRY
 save_BeginQueryARB(GLenum target, GLuint id)
 {
@@ -5413,8 +5411,6 @@ save_EndQueryIndexed(GLenum target, GLuint index)
    }
 }
 
-#endif /* FEATURE_queryobj */
-
 
 static void GLAPIENTRY
 save_DrawBuffersARB(GLsizei count, const GLenum * buffers)
@@ -8471,7 +8467,6 @@ execute_list(struct gl_context *ctx, GLuint list)
                                                       n[6].f));
             break;
 #endif
-#if FEATURE_queryobj
          case OPCODE_BEGIN_QUERY_ARB:
             CALL_BeginQueryARB(ctx->Exec, (n[1].e, n[2].ui));
             break;
@@ -8487,7 +8482,6 @@ execute_list(struct gl_context *ctx, GLuint list)
          case OPCODE_END_QUERY_INDEXED:
             CALL_EndQueryIndexed(ctx->Exec, (n[1].e, n[2].ui));
             break;
-#endif
          case OPCODE_DRAW_BUFFERS_ARB:
             {
                GLenum buffers[MAX_DRAW_BUFFERS];
@@ -10463,12 +10457,10 @@ _mesa_create_save_table(void)
    SET_MapBufferARB(table, _mesa_MapBufferARB);
    SET_UnmapBufferARB(table, _mesa_UnmapBufferARB);
 
-#if FEATURE_queryobj
    _mesa_init_queryobj_dispatch(table); /* glGetQuery, etc */
    SET_BeginQueryARB(table, save_BeginQueryARB);
    SET_EndQueryARB(table, save_EndQueryARB);
    SET_QueryCounter(table, save_QueryCounter);
-#endif
 
    SET_DrawBuffersARB(table, save_DrawBuffersARB);
 
@@ -10601,10 +10593,8 @@ _mesa_create_save_table(void)
                                       save_DrawTransformFeedbackInstanced);
    SET_DrawTransformFeedbackStreamInstanced(table,
                                 save_DrawTransformFeedbackStreamInstanced);
-#if FEATURE_queryobj
    SET_BeginQueryIndexed(table, save_BeginQueryIndexed);
    SET_EndQueryIndexed(table, save_EndQueryIndexed);
-#endif
 #endif
 
    /* GL_ARB_instanced_arrays */
index e6f4541f0444978bef0ad9557cc4ca38e0eb849d..2899db8377828d02ab70a09904cd6ce1dcaff5ec 100644 (file)
@@ -416,10 +416,8 @@ _mesa_enable_sw_extensions(struct gl_context *ctx)
    ctx->Extensions.ARB_half_float_pixel = GL_TRUE;
    ctx->Extensions.ARB_half_float_vertex = GL_TRUE;
    ctx->Extensions.ARB_map_buffer_range = GL_TRUE;
-#if FEATURE_queryobj
    ctx->Extensions.ARB_occlusion_query = GL_TRUE;
    ctx->Extensions.ARB_occlusion_query2 = GL_TRUE;
-#endif
    ctx->Extensions.ARB_point_sprite = GL_TRUE;
 #if FEATURE_ARB_shader_objects
    ctx->Extensions.ARB_shader_objects = GL_TRUE;
index 73f707482e8f17a98210829eb9f1f79876883b93..cb7cce1d25cc6e2d8adfa1bf01fb68eb9d20166c 100644 (file)
@@ -84,7 +84,6 @@
 #define FEATURE_remap_table               0
 #endif
 
-#define FEATURE_queryobj                  FEATURE_GL
 #define FEATURE_rastpos                   FEATURE_GL
 #define FEATURE_texture_fxt1              FEATURE_GL
 #define FEATURE_texture_s3tc              FEATURE_GL
index 407a761e6ee7bf3879577be31a766350ec61d043..2b3b259331d207e64b1faf1913aa36245df66f53 100644 (file)
@@ -34,9 +34,6 @@
 #include "main/dispatch.h"
 
 
-#if FEATURE_queryobj
-
-
 /**
  * Allocate a new query object.  This is a fallback routine called via
  * ctx->Driver.NewQueryObject().
@@ -734,9 +731,6 @@ _mesa_init_queryobj_dispatch(struct _glapi_table *disp)
 }
 
 
-#endif /* FEATURE_queryobj */
-
-
 /**
  * Allocate/init the context state related to query objects.
  */
index e7a133b598b307b72d08c7a33631227471f1f167..0f662fb57b42bf4d66857535b9fa5a9f81b1520d 100644 (file)
@@ -32,8 +32,6 @@
 #include "main/hash.h"
 
 
-#if FEATURE_queryobj
-
 static inline struct gl_query_object *
 _mesa_lookup_query_object(struct gl_context *ctx, GLuint id)
 {
@@ -48,26 +46,6 @@ _mesa_init_query_object_functions(struct dd_function_table *driver);
 extern void
 _mesa_init_queryobj_dispatch(struct _glapi_table *disp);
 
-#else /* FEATURE_queryobj */
-
-static inline struct gl_query_object *
-_mesa_lookup_query_object(struct gl_context *ctx, GLuint id)
-{
-   return NULL;
-}
-
-static inline void
-_mesa_init_query_object_functions(struct dd_function_table *driver)
-{
-}
-
-static inline void
-_mesa_init_queryobj_dispatch(struct _glapi_table *disp)
-{
-}
-
-#endif /* FEATURE_queryobj */
-
 extern void
 _mesa_init_queryobj(struct gl_context *ctx);
 
index e5e4a81dcad4ffb0c2bd1ebafbe340833e4c3d40..b10fd9335eda1ae0ed33ed948595be553a4bbb31 100644 (file)
@@ -45,8 +45,6 @@
 #include "st_cb_bitmap.h"
 
 
-#if FEATURE_queryobj
-
 static struct gl_query_object *
 st_NewQueryObject(struct gl_context *ctx, GLuint id)
 {
@@ -194,5 +192,3 @@ void st_init_query_functions(struct dd_function_table *functions)
    functions->CheckQuery = st_CheckQuery;
    functions->GetTimestamp = st_GetTimestamp;
 }
-
-#endif /* FEATURE_queryobj */
index 03f0be8372b400f75c6629232f3d5256f1380194..03487b153170ea9a376431c5ac2bc9434ca71b30 100644 (file)
@@ -53,18 +53,8 @@ st_query_object(struct gl_query_object *q)
 }
 
 
-#if FEATURE_queryobj
-
 extern void
 st_init_query_functions(struct dd_function_table *functions);
 
-#else
-
-static INLINE void
-st_init_query_functions(struct dd_function_table *functions)
-{
-}
-
-#endif /* FEATURE_queryobj */
 
 #endif