[Mesa-dev] [PATCH 12/15] gallium: remove st_api::get_proc_address hook

Emil Velikov emil.l.velikov at gmail.com
Tue Jun 7 16:33:45 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

It has been unused for a long time, plus makes the gallium dri modules
require an extra glapi symbol relative to their classic counterparts.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
We can keep the hook, if other (non-public) state-trackers need/use it.

I've went ahead with the best diffstat I could squeeze :-)
---
 src/gallium/include/state_tracker/st_api.h | 12 ------------
 src/mesa/state_tracker/st_manager.c        |  7 -------
 2 files changed, 19 deletions(-)

diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h
index 356863d..41daa47 100644
--- a/src/gallium/include/state_tracker/st_api.h
+++ b/src/gallium/include/state_tracker/st_api.h
@@ -175,11 +175,6 @@ enum st_manager_param {
    ST_MANAGER_BROKEN_INVALIDATE
 };
 
-/**
- * The return type of st_api->get_proc_address.
- */
-typedef void (*st_proc_t)(void);
-
 struct pipe_context;
 struct pipe_resource;
 struct pipe_fence_handle;
@@ -498,13 +493,6 @@ struct st_api
                           int *gl_es2_version);
 
    /**
-    * Return an API entry point.
-    *
-    * For GL this is the same as _glapi_get_proc_address.
-    */
-   st_proc_t (*get_proc_address)(struct st_api *stapi, const char *procname);
-
-   /**
     * Create a rendering context.
     */
    struct st_context_iface *(*create_context)(struct st_api *stapi,
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index a983d64..5e82f4c 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -805,12 +805,6 @@ st_api_make_current(struct st_api *stapi, struct st_context_iface *stctxi,
    return ret;
 }
 
-static st_proc_t
-st_api_get_proc_address(struct st_api *stapi, const char *procname)
-{
-   return (st_proc_t) _glapi_get_proc_address(procname);
-}
-
 static void
 st_api_destroy(struct st_api *stapi)
 {
@@ -971,7 +965,6 @@ static const struct st_api st_gl_api = {
    ST_API_FEATURE_MS_VISUALS_MASK,
    st_api_destroy,
    st_api_query_versions,
-   st_api_get_proc_address,
    st_api_create_context,
    st_api_make_current,
    st_api_get_current,
-- 
2.8.2



More information about the mesa-dev mailing list