Lines Matching defs:consts
169 _mesa_override_gl_version_contextless(struct gl_constants *consts,
184 consts->ContextFlags |= GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT;
227 _mesa_override_glsl_version(struct gl_constants *consts)
238 n = sscanf(version, "%u", &consts->GLSLVersion);
250 const struct gl_constants *consts, gl_api api)
273 consts->GLSLVersion >= 130 &&
274 consts->MaxColorAttachments >= 4 &&
275 (consts->MaxSamples >= 4 || consts->FakeSWMSAA) &&
294 consts->GLSLVersion >= 140 &&
301 consts->Program[MESA_SHADER_VERTEX].MaxTextureImageUnits >= 16);
303 consts->GLSLVersion >= 150 &&
313 consts->GLSLVersion >= 330 &&
326 consts->GLSLVersion >= 400 &&
339 consts->GLSLVersion >= 410 &&
340 consts->MaxTextureSize >= 16384 &&
341 consts->MaxRenderbufferSize >= 16384 &&
347 consts->GLSLVersion >= 420 &&
358 consts->GLSLVersion >= 430 &&
359 consts->Program[MESA_SHADER_VERTEX].MaxUniformBlocks >= 14 &&
376 consts->GLSLVersion >= 440 &&
377 consts->MaxVertexAttribStride >= 2048 &&
386 consts->GLSLVersion >= 450 &&
395 consts->GLSLVersion >= 460 &&
482 const struct gl_constants *consts)
510 consts->PrimitiveRestartFixedIndex) &&
513 consts->MaxColorAttachments >= 4);
515 consts->MaxComputeWorkGroupInvocations >= 128 &&
516 consts->Program[MESA_SHADER_COMPUTE].MaxShaderStorageBlocks &&
517 consts->Program[MESA_SHADER_COMPUTE].MaxAtomicBuffers &&
518 consts->Program[MESA_SHADER_COMPUTE].MaxImageUniforms;
520 consts->MaxVertexAttribStride >= 2048 &&
571 struct gl_constants *consts, gl_api api)
577 if (!consts->AllowHigherCompatVersion) {
578 consts->GLSLVersion = consts->GLSLVersionCompat;
582 return compute_version(extensions, consts, api);
586 return compute_version_es2(extensions, consts);