Lines Matching defs:version

34 #include "version.h"
59 * version > 0 indicates there is an override requested
60 * fwd_context is only valid if version > 0
63 get_gl_override(gl_api api, int *version, bool *fwd_context,
71 int version;
88 if (override[api].version < 0) {
89 override[api].version = 0;
100 override[api].version = 0;
102 override[api].version = major * 10 + minor;
107 if ((override[api].version < 30 && override[api].fc_suffix) ||
118 *version = override[api].version;
126 * Builds the Mesa version string.
147 * Override the context's version and/or API type if the environment variables
152 * 2.1: select a compatibility (non-Core) profile with GL version 2.1.
153 * 3.0: select a compatibility (non-Core) profile with GL version 3.0.
154 * 3.0FC: select a Core+Forward Compatible profile with GL version 3.0.
155 * 3.1: select GL version 3.1 with GL_ARB_compatibility enabled per the driver default.
156 * 3.1FC: select GL version 3.1 with forward compatibility and GL_ARB_compatibility disabled.
157 * 3.1COMPAT: select GL version 3.1 with GL_ARB_compatibility enabled.
158 * X.Y: override GL version to X.Y without changing the profile.
159 * X.YFC: select a Core+Forward Compatible profile with GL version X.Y.
160 * X.YCOMPAT: select a Compatibility profile with GL version X.Y.
164 * 2.0: select GLES version 2.0.
165 * 3.0: select GLES version 3.0.
166 * 3.1: select GLES version 3.1.
172 int version;
175 get_gl_override(*apiOut, &version, &fwd_context, &compat_context);
177 if (version > 0) {
178 *versionOut = version;
182 if (version >= 30 && fwd_context) {
200 /* We need to include API in version string for OpenGL ES, otherwise
214 * <version number><space><vendor-specific information>"
222 * Override the context's GLSL version if the environment variable
230 const char *version;
233 version = getenv(env_var);
234 if (!version) {
238 n = sscanf(version, "%u", &consts->GLSLVersion);
240 fprintf(stderr, "error: invalid value for %s: %s\n", env_var, version);
246 * Examine enabled GL extensions to determine GL version.
252 GLuint major, minor, version;
472 version = major * 10 + minor;
474 if (api == API_OPENGL_CORE && version < 31)
477 return version;
594 * or to perform version check for GLX_ARB_create_context_profile.
605 /* Make sure that the GLSL version lines up with the GL version. In some
717 * Get the i-th GLSL version string. If index=0, return the most recent
718 * supported version.
720 * \param index which version string to return, or -1 if none