mesa/es: Update sources.mak and fix the build.
authorChia-I Wu <olv@lunarg.com>
Wed, 31 Mar 2010 04:44:26 +0000 (12:44 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 12 May 2010 04:30:22 +0000 (12:30 +0800)
Remove sources that are feature-aware from the omit list.  x86 -O0 build
is ~12KiB smaller afther making those sources feature-aware.

Also, remove get.c from the omit list as get_es[12].c have been merged
to it.

src/mesa/es/sources.mak
src/mesa/main/api_exec.c

index bc479e66ebdf3a2ab5b1c9e68de617cc49555081..e603acd4b1fb474233dabc228a6e6fdfa99d4603 100644 (file)
@@ -1,3 +1,5 @@
+# TODO Make core mesa more feature-aware and remove this file
+
 include $(MESA)/sources.mak
 
 LOCAL_ES1_INCLUDES :=                  \
@@ -8,14 +10,6 @@ LOCAL_ES1_INCLUDES :=                 \
 LOCAL_ES2_INCLUDES := $(subst es1,es2, $(LOCAL_ES1_INCLUDES))
 
 # MESA sources
-# Ideally, the omit list should be replaced by features.
-
-MAIN_OMITTED :=                                \
-       main/api_exec.c                 \
-       main/condrender.c               \
-       main/dlopen.c                   \
-       main/get.c
-MAIN_SOURCES := $(filter-out $(MAIN_OMITTED), $(MAIN_SOURCES))
 
 VBO_OMITTED :=                         \
        vbo/vbo_save.c                  \
@@ -24,14 +18,6 @@ VBO_OMITTED :=                               \
        vbo/vbo_save_loopback.c
 VBO_SOURCES := $(filter-out $(VBO_OMITTED), $(VBO_SOURCES))
 
-STATETRACKER_OMITTED :=                                \
-       state_tracker/st_api.c                  \
-       state_tracker/st_cb_drawpixels.c        \
-       state_tracker/st_cb_feedback.c          \
-       state_tracker/st_cb_rasterpos.c         \
-       state_tracker/st_draw_feedback.c
-STATETRACKER_SOURCES := $(filter-out $(STATETRACKER_OMITTED), $(STATETRACKER_SOURCES))
-
 SHADER_OMITTED :=                      \
        shader/atifragshader.c
 SHADER_SOURCES := $(filter-out $(SHADER_OMITTED), $(SHADER_SOURCES))
index 8fa8887a6c90ab916b5a36ca16d0ccdd168f5189..ad18472dea3e1efbaeda6aefeb183a7c0e77d079 100644 (file)
 #endif
 #include "main/dispatch.h"
 
+
+#if FEATURE_GL
+
+
 #ifdef _GLAPI_USE_REMAP_TABLE
 
 #define need_MESA_remap_table
@@ -816,3 +820,5 @@ _mesa_create_exec_table(void)
 
    return exec;
 }
+
+#endif /* FEATURE_GL */