From 15bc7856bf1b328cc403f464ace979b3a0afa892 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 7 Jun 2016 17:33:45 +0100 Subject: [PATCH] gallium: remove st_api::get_proc_address hook 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 --- 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 356863d8531..41daa47986c 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; @@ -497,13 +492,6 @@ struct st_api int *gl_es1_version, 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. */ diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 33f56ea55e1..eaca22a30de 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -802,12 +802,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) { @@ -968,7 +962,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.30.2