gallium: Remove ST_API_OPENGL_ES1 and ST_API_OPENGL_ES2.
authorChia-I Wu <olv@lunarg.com>
Fri, 10 Sep 2010 05:42:49 +0000 (13:42 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 10 Sep 2010 07:44:19 +0000 (15:44 +0800)
They are no longer used.

src/gallium/include/state_tracker/st_api.h
src/gallium/targets/egl/egl.c
src/gallium/targets/egl/egl.h [new file with mode: 0644]
src/gallium/targets/egl/st_GL.c
src/gallium/targets/egl/st_GLESv1_CM.c
src/gallium/targets/egl/st_GLESv2.c
src/gallium/targets/egl/st_OpenVG.c
src/mesa/state_tracker/st_gl_api.h
src/mesa/state_tracker/st_manager.c

index 9e87c8e0d409cfea466b171183ba727cff2af42b..8ea1554568971b923a33fcae66e56d8e9acd05aa 100644 (file)
@@ -47,8 +47,6 @@
  */
 enum st_api_type {
    ST_API_OPENGL,
-   ST_API_OPENGL_ES1,
-   ST_API_OPENGL_ES2,
    ST_API_OPENVG,
 
    ST_API_COUNT
@@ -460,18 +458,4 @@ st_visual_have_buffers(const struct st_visual *visual, unsigned mask)
    return ((visual->buffer_mask & mask) == mask);
 }
 
-/* these symbols may need to be dynamically lookup up */
-extern PUBLIC struct st_api * st_api_create_OpenGL(void);
-extern PUBLIC struct st_api * st_api_create_OpenGL_ES1(void);
-extern PUBLIC struct st_api * st_api_create_OpenGL_ES2(void);
-extern PUBLIC struct st_api * st_api_create_OpenVG(void);
-
-/**
- * The entry points of the state trackers.
- */
-#define ST_CREATE_OPENGL_SYMBOL      "st_api_create_OpenGL"
-#define ST_CREATE_OPENGL_ES1_SYMBOL  "st_api_create_OpenGL_ES1"
-#define ST_CREATE_OPENGL_ES2_SYMBOL  "st_api_create_OpenGL_ES2"
-#define ST_CREATE_OPENVG_SYMBOL      "st_api_create_OpenVG"
-
 #endif /* _ST_API_H_ */
index 7c6bb58aecf4c3275015fad23baee0e94ba44c6e..fb5bfd4061ccfdc70484da2ff4f6853c031a4092 100644 (file)
@@ -37,6 +37,8 @@
 #include "state_tracker/drm_driver.h"
 #include "common/egl_g3d_loader.h"
 
+#include "egl.h"
+
 struct egl_g3d_loader egl_g3d_loader;
 
 static struct st_module {
diff --git a/src/gallium/targets/egl/egl.h b/src/gallium/targets/egl/egl.h
new file mode 100644 (file)
index 0000000..5fd0678
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Mesa 3-D graphics library
+ * Version:  7.9
+ *
+ * Copyright (C) 2010 LunarG Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Authors:
+ *    Chia-I Wu <olv@lunarg.com>
+ */
+
+#ifndef _EGL_H_
+#define _EGL_H_
+
+#include "pipe/p_compiler.h"
+#include "state_tracker/st_api.h"
+
+#define ST_CREATE_OPENGL_SYMBOL "st_api_create_OpenGL"
+#define ST_CREATE_OPENVG_SYMBOL "st_api_create_OpenVG"
+
+PUBLIC struct st_api *
+st_api_create_OpenGL(void);
+
+PUBLIC struct st_api *
+st_api_create_OpenVG(void);
+
+#endif /* _EGL_H_ */
index 69c8f7a83cf5a1a918c0dcb789b01dbfcda706b6..c1df844aa433288a2013efbd3b3378e703c36de9 100644 (file)
@@ -1,5 +1,5 @@
 #include "state_tracker/st_gl_api.h"
-#include "state_tracker/st_api.h"
+#include "egl.h"
 
 PUBLIC struct st_api *
 st_api_create_OpenGL(void)
index 016bb4e9d08f193752ec031b750bbff70f27e2da..c1df844aa433288a2013efbd3b3378e703c36de9 100644 (file)
@@ -1,5 +1,5 @@
-#include "state_tracker/st_api.h"
 #include "state_tracker/st_gl_api.h"
+#include "egl.h"
 
 PUBLIC struct st_api *
 st_api_create_OpenGL(void)
index 016bb4e9d08f193752ec031b750bbff70f27e2da..c1df844aa433288a2013efbd3b3378e703c36de9 100644 (file)
@@ -1,5 +1,5 @@
-#include "state_tracker/st_api.h"
 #include "state_tracker/st_gl_api.h"
+#include "egl.h"
 
 PUBLIC struct st_api *
 st_api_create_OpenGL(void)
index e29a237479259b132f6c7257a9be6f56c22894de..d0bf4dbae91a012241f8c2dc9410dd7d14e2eb09 100644 (file)
@@ -1,5 +1,5 @@
-#include "state_tracker/st_api.h"
 #include "vg_api.h"
+#include "egl.h"
 
 PUBLIC struct st_api *
 st_api_create_OpenVG(void)
index 57c6d9f24d29f81b1f6106584e39841615cb0e97..55ad778c97d297b872073ae0d5204120f4f16654 100644 (file)
@@ -3,7 +3,5 @@
 #define ST_GL_API_H
 
 struct st_api *st_gl_api_create(void);
-struct st_api *st_gl_api_create_es1(void);
-struct st_api *st_gl_api_create_es2(void);
 
 #endif
index 8acd0938bb8e393388c0e48a81ddd59374649433..450b0453cf44281287354019400dabc52d8a0579 100644 (file)
@@ -674,22 +674,6 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi,
    return &st->iface;
 }
 
-static struct st_context_iface *
-st_api_create_context_es1(struct st_api *stapi, struct st_manager *smapi,
-                          const struct st_context_attribs *attribs,
-                          struct st_context_iface *shared_stctxi)
-{
-   return st_api_create_context(stapi, smapi, attribs, shared_stctxi);
-}
-
-static struct st_context_iface *
-st_api_create_context_es2(struct st_api *stapi, struct st_manager *smapi,
-                          const struct st_context_attribs *attribs,
-                          struct st_context_iface *shared_stctxi)
-{
-   return st_api_create_context(stapi, smapi, attribs, shared_stctxi);
-}
-
 static boolean
 st_api_make_current(struct st_api *stapi, struct st_context_iface *stctxi,
                     struct st_framebuffer_iface *stdrawi,
@@ -890,56 +874,8 @@ static const struct st_api st_gl_api = {
    st_api_get_current,
 };
 
-static const struct st_api st_gl_api_es1 = {
-   ST_API_OPENGL_ES1,
-   ST_PROFILE_OPENGL_ES1_MASK,
-   st_api_destroy,
-   st_api_get_proc_address,
-   st_api_create_context_es1,
-   st_api_make_current,
-   st_api_get_current,
-};
-
-static const struct st_api st_gl_api_es2 = {
-   ST_API_OPENGL_ES2,
-   ST_PROFILE_OPENGL_ES2_MASK,
-   st_api_destroy,
-   st_api_get_proc_address,
-   st_api_create_context_es2,
-   st_api_make_current,
-   st_api_get_current,
-};
-
 struct st_api *
 st_gl_api_create(void)
 {
-   (void) st_gl_api;
-   (void) st_gl_api_es1;
-   (void) st_gl_api_es2;
-
-#if FEATURE_GL
    return (struct st_api *) &st_gl_api;
-#else
-   return NULL;
-#endif
-}
-
-struct st_api *
-st_gl_api_create_es1(void)
-{
-#if FEATURE_ES1
-   return (struct st_api *) &st_gl_api_es1;
-#else
-   return NULL;
-#endif
-}
-
-struct st_api *
-st_gl_api_create_es2(void)
-{
-#if FEATURE_ES2
-   return (struct st_api *) &st_gl_api_es2;
-#else
-   return NULL;
-#endif
 }