Lines Matching defs:consts
167 _mesa_override_gl_version_contextless(struct gl_constants *consts,
182 consts->ContextFlags |= GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT;
225 _mesa_override_glsl_version(struct gl_constants *consts)
236 n = sscanf(version, "%u", &consts->GLSLVersion);
248 const struct gl_constants *consts, gl_api api)
282 consts->GLSLVersion >= 130 &&
283 consts->MaxColorAttachments >= 4 &&
284 (consts->MaxSamples >= 4 || consts->FakeSWMSAA) &&
303 consts->GLSLVersion >= 140 &&
310 consts->Program[MESA_SHADER_VERTEX].MaxTextureImageUnits >= 16);
312 consts->GLSLVersion >= 150 &&
322 consts->GLSLVersion >= 330 &&
335 consts->GLSLVersion >= 400 &&
348 consts->GLSLVersion >= 410 &&
349 consts->MaxTextureSize >= 16384 &&
350 consts->MaxRenderbufferSize >= 16384 &&
356 consts->GLSLVersion >= 420 &&
367 consts->GLSLVersion >= 430 &&
368 consts->Program[MESA_SHADER_VERTEX].MaxUniformBlocks >= 14 &&
385 consts->GLSLVersion >= 440 &&
386 consts->MaxVertexAttribStride >= 2048 &&
395 consts->GLSLVersion >= 450 &&
404 consts->GLSLVersion >= 460 &&
514 const struct gl_constants *consts)
546 consts->PrimitiveRestartFixedIndex) &&
549 consts->MaxColorAttachments >= 4);
551 consts->MaxComputeWorkGroupInvocations >= 128 &&
552 consts->Program[MESA_SHADER_COMPUTE].MaxShaderStorageBlocks &&
553 consts->Program[MESA_SHADER_COMPUTE].MaxAtomicBuffers &&
554 consts->Program[MESA_SHADER_COMPUTE].MaxImageUniforms;
556 consts->MaxVertexAttribStride >= 2048 &&
608 struct gl_constants *consts, gl_api api)
614 if (!consts->AllowHigherCompatVersion) {
615 consts->GLSLVersion = consts->GLSLVersionCompat;
619 return compute_version(extensions, consts, api);
623 return compute_version_es2(extensions, consts);