st: Remove st_api_type because ST_API_OPENVG is not an option anymore
authorYonggang Luo <luoyonggang@gmail.com>
Thu, 20 Oct 2022 02:50:24 +0000 (10:50 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Oct 2022 19:29:44 +0000 (19:29 +0000)
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19186>

src/gallium/include/frontend/api.h
src/mesa/state_tracker/st_manager.c

index 91a15b4..33d8697 100644 (file)
  */
 
 /**
- * The supported rendering API.
- */
-enum st_api_type {
-   ST_API_OPENGL,
-   ST_API_OPENVG,
-
-   ST_API_COUNT
-};
-
-/**
  * The profile of a context.
  */
 enum st_profile_type
@@ -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.
  */
@@ -530,11 +520,6 @@ struct st_api
    const char *name;
 
    /**
-    * The supported rendering API.
-    */
-   enum st_api_type api;
-
-   /**
     * The supported profiles.  Tested with ST_PROFILE_*_MASK.
     */
    unsigned profile_mask;
index 8c5dab9..b2abd03 100644 (file)
@@ -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 |