Lines Matching refs:Version
30 #include "version.h"
51 * version > 0 indicates there is an override requested
52 * fwd_context is only valid if version > 0
55 get_gl_override(gl_api api, int *version, bool *fwd_context,
63 int version;
78 if (override[api].version < 0) {
79 override[api].version = 0;
90 override[api].version = 0;
92 override[api].version = major * 10 + minor;
97 if ((override[api].version < 30 && override[api].fc_suffix) ||
108 *version = override[api].version;
114 * Builds the Mesa version string.
126 ctx->Version / 10, ctx->Version % 10,
128 (ctx->API == API_OPENGL_COMPAT && ctx->Version >= 32) ?
135 * Override the context's version and/or API type if the environment variables
140 * 2.1: select a compatibility (non-Core) profile with GL version 2.1.
141 * 3.0: select a compatibility (non-Core) profile with GL version 3.0.
142 * 3.0FC: select a Core+Forward Compatible profile with GL version 3.0.
143 * 3.1: select GL version 3.1 with GL_ARB_compatibility enabled per the driver default.
144 * 3.1FC: select GL version 3.1 with forward compatibility and GL_ARB_compatibility disabled.
145 * 3.1COMPAT: select GL version 3.1 with GL_ARB_compatibility enabled.
146 * X.Y: override GL version to X.Y without changing the profile.
147 * X.YFC: select a Core+Forward Compatible profile with GL version X.Y.
148 * X.YCOMPAT: select a Compatibility profile with GL version X.Y.
152 * 2.0: select GLES version 2.0.
153 * 3.0: select GLES version 3.0.
154 * 3.1: select GLES version 3.1.
160 int version;
163 get_gl_override(*apiOut, &version, &fwd_context, &compat_context);
165 if (version > 0) {
166 *versionOut = version;
170 if (version >= 30 && fwd_context) {
187 &ctx->Version)) {
188 /* We need to include API in version string for OpenGL ES, otherwise
193 * "The VERSION string is laid out as follows:
199 * "The VERSION and SHADING_LANGUAGE_VERSION strings are laid out as
202 * <version number><space><vendor-specific information>"
205 ctx->Extensions.Version = ctx->Version;
210 * Override the context's GLSL version if the environment variable
218 const char *version;
221 version = getenv(env_var);
222 if (!version) {
226 n = sscanf(version, "%u", &consts->GLSLVersion);
228 fprintf(stderr, "error: invalid value for %s: %s\n", env_var, version);
234 * Examine enabled GL extensions to determine GL version.
240 GLuint major, minor, version;
467 version = major * 10 + minor;
469 if (api == API_OPENGL_CORE && version < 31)
472 return version;
602 * Set the context's Version and VersionString fields.
604 * or to perform version check for GLX_ARB_create_context_profile.
609 if (ctx->Version)
612 ctx->Version = _mesa_get_version(&ctx->Extensions, &ctx->Const, ctx->API);
613 ctx->Extensions.Version = ctx->Version;
615 /* Make sure that the GLSL version lines up with the GL version. In some
619 switch (ctx->Version) {
635 if (ctx->Version >= 33)
636 ctx->Const.GLSLVersion = ctx->Version * 10;
648 if (!ctx->Version) {
656 if (!ctx->Version) {
665 if (ctx->API == API_OPENGL_COMPAT && ctx->Version >= 31)
683 * Get the i-th GLSL version string. If index=0, return the most recent
684 * supported version.
686 * \param index which version string to return, or -1 if none
731 if ((ctx->API == API_OPENGLES2 && ctx->Version >= 32) ||