From a096f46836ad8c7e1055972b0ec6dc5af3ef4707 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Thu, 20 Oct 2022 10:50:24 +0800 Subject: [PATCH] st: Remove st_api_type because ST_API_OPENVG is not an option anymore Signed-off-by: Yonggang Luo Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Adam Jackson Part-of: --- src/gallium/include/frontend/api.h | 17 +---------------- src/mesa/state_tracker/st_manager.c | 1 - 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/gallium/include/frontend/api.h b/src/gallium/include/frontend/api.h index 91a15b4bbe7..33d8697f452 100644 --- a/src/gallium/include/frontend/api.h +++ b/src/gallium/include/frontend/api.h @@ -37,16 +37,6 @@ * their managers. */ -/** - * The supported rendering API. - */ -enum st_api_type { - ST_API_OPENGL, - ST_API_OPENVG, - - ST_API_COUNT -}; - /** * The profile of a context. */ @@ -518,7 +508,7 @@ struct st_manager }; /** - * Represent a rendering API such as OpenGL or OpenVG. + * Represent the OpenGL rendering API. * * Implemented by the gallium frontend and used by the frontend manager. */ @@ -529,11 +519,6 @@ struct st_api */ const char *name; - /** - * The supported rendering API. - */ - enum st_api_type api; - /** * The supported profiles. Tested with ST_PROFILE_*_MASK. */ diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 8c5dab9bd3f..b2abd0351e8 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -1450,7 +1450,6 @@ st_api_query_versions(struct st_api *stapi, struct st_manager *sm, static const struct st_api st_gl_api = { .name = "Mesa " PACKAGE_VERSION, - .api = ST_API_OPENGL, .profile_mask = ST_PROFILE_DEFAULT_MASK | ST_PROFILE_OPENGL_CORE_MASK | ST_PROFILE_OPENGL_ES1_MASK |