Lines Matching refs:Version
34 #include "version.h"
57 * version > 0 indicates there is an override requested
58 * fwd_context is only valid if version > 0
61 get_gl_override(gl_api api, int *version, bool *fwd_context,
69 int version;
86 if (override[api].version < 0) {
87 override[api].version = 0;
98 override[api].version = 0;
100 override[api].version = major * 10 + minor;
105 if ((override[api].version < 30 && override[api].fc_suffix) ||
116 *version = override[api].version;
124 * Builds the Mesa version string.
136 ctx->Version / 10, ctx->Version % 10,
138 (ctx->API == API_OPENGL_COMPAT && ctx->Version >= 32) ?
145 * Override the context's version and/or API type if the environment variables
150 * 2.1: select a compatibility (non-Core) profile with GL version 2.1.
151 * 3.0: select a compatibility (non-Core) profile with GL version 3.0.
152 * 3.0FC: select a Core+Forward Compatible profile with GL version 3.0.
153 * 3.1: select GL version 3.1 with GL_ARB_compatibility enabled per the driver default.
154 * 3.1FC: select GL version 3.1 with forward compatibility and GL_ARB_compatibility disabled.
155 * 3.1COMPAT: select GL version 3.1 with GL_ARB_compatibility enabled.
156 * X.Y: override GL version to X.Y without changing the profile.
157 * X.YFC: select a Core+Forward Compatible profile with GL version X.Y.
158 * X.YCOMPAT: select a Compatibility profile with GL version X.Y.
162 * 2.0: select GLES version 2.0.
163 * 3.0: select GLES version 3.0.
164 * 3.1: select GLES version 3.1.
170 int version;
173 get_gl_override(*apiOut, &version, &fwd_context, &compat_context);
175 if (version > 0) {
176 *versionOut = version;
180 if (version >= 30 && fwd_context) {
197 &ctx->Version)) {
198 /* We need to include API in version string for OpenGL ES, otherwise
203 * "The VERSION string is laid out as follows:
209 * "The VERSION and SHADING_LANGUAGE_VERSION strings are laid out as
212 * <version number><space><vendor-specific information>"
215 ctx->Extensions.Version = ctx->Version;
220 * Override the context's GLSL version if the environment variable
228 const char *version;
231 version = getenv(env_var);
232 if (!version) {
236 n = sscanf(version, "%u", &consts->GLSLVersion);
238 fprintf(stderr, "error: invalid value for %s: %s\n", env_var, version);
244 * Examine enabled GL extensions to determine GL version.
250 GLuint major, minor, version;
485 version = major * 10 + minor;
487 if (api == API_OPENGL_CORE && version < 31)
490 return version;
629 * Set the context's Version and VersionString fields.
631 * or to perform version check for GLX_ARB_create_context_profile.
636 if (ctx->Version)
639 ctx->Version = _mesa_get_version(&ctx->Extensions, &ctx->Const, ctx->API);
640 ctx->Extensions.Version = ctx->Version;
642 /* Make sure that the GLSL version lines up with the GL version. In some
646 switch (ctx->Version) {
662 if (ctx->Version >= 33)
663 ctx->Const.GLSLVersion = ctx->Version * 10;
675 if (!ctx->Version) {
683 if (!ctx->Version) {
692 if (ctx->API == API_OPENGL_COMPAT && ctx->Version >= 31)
739 * Get the i-th GLSL version string. If index=0, return the most recent
740 * supported version.
742 * \param index which version string to return, or -1 if none
787 if ((ctx->API == API_OPENGLES2 && ctx->Version >= 32) ||