st: OpenVG are removed, remove st_api::profile_mask as it's constant
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19197>
This commit is contained in:
@@ -53,6 +53,10 @@ enum st_profile_type
|
||||
#define ST_PROFILE_OPENGL_CORE_MASK (1 << ST_PROFILE_OPENGL_CORE)
|
||||
#define ST_PROFILE_OPENGL_ES1_MASK (1 << ST_PROFILE_OPENGL_ES1)
|
||||
#define ST_PROFILE_OPENGL_ES2_MASK (1 << ST_PROFILE_OPENGL_ES2)
|
||||
#define ST_PROFILE_ALL_MASK (ST_PROFILE_DEFAULT_MASK | \
|
||||
ST_PROFILE_OPENGL_CORE_MASK | \
|
||||
ST_PROFILE_OPENGL_ES1_MASK | \
|
||||
ST_PROFILE_OPENGL_ES2_MASK)
|
||||
|
||||
/**
|
||||
* Optional API features.
|
||||
@@ -519,11 +523,6 @@ struct st_api
|
||||
*/
|
||||
const char *name;
|
||||
|
||||
/**
|
||||
* The supported profiles. Tested with ST_PROFILE_*_MASK.
|
||||
*/
|
||||
unsigned profile_mask;
|
||||
|
||||
/**
|
||||
* The supported optional features. Tested with ST_FEATURE_*_MASK.
|
||||
*/
|
||||
|
||||
@@ -1019,7 +1019,7 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi,
|
||||
bool no_error = false;
|
||||
unsigned ctx_flags = PIPE_CONTEXT_PREFER_THREADED;
|
||||
|
||||
if (!(stapi->profile_mask & (1 << attribs->profile)))
|
||||
if (!(ST_PROFILE_ALL_MASK & (1 << attribs->profile)))
|
||||
return NULL;
|
||||
|
||||
switch (attribs->profile) {
|
||||
@@ -1458,11 +1458,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,
|
||||
.profile_mask = ST_PROFILE_DEFAULT_MASK |
|
||||
ST_PROFILE_OPENGL_CORE_MASK |
|
||||
ST_PROFILE_OPENGL_ES1_MASK |
|
||||
ST_PROFILE_OPENGL_ES2_MASK |
|
||||
0,
|
||||
.feature_mask = ST_API_FEATURE_MS_VISUALS_MASK,
|
||||
.destroy = st_api_destroy,
|
||||
.query_versions = st_api_query_versions,
|
||||
|
||||
Reference in New Issue
Block a user