Lines Matching refs:Const
546 ctx->Const.MaxUniformBlockSize / 4 *
552 * Initialize fields of gl_constants (aka ctx->Const.*).
562 ctx->Const.MaxTextureMbytes = MAX_TEXTURE_MBYTES;
563 ctx->Const.MaxTextureLevels = MAX_TEXTURE_LEVELS;
564 ctx->Const.Max3DTextureLevels = MAX_3D_TEXTURE_LEVELS;
565 ctx->Const.MaxCubeTextureLevels = MAX_CUBE_TEXTURE_LEVELS;
566 ctx->Const.MaxTextureRectSize = MAX_TEXTURE_RECT_SIZE;
567 ctx->Const.MaxArrayTextureLayers = MAX_ARRAY_TEXTURE_LAYERS;
568 ctx->Const.MaxTextureCoordUnits = MAX_TEXTURE_COORD_UNITS;
569 ctx->Const.MaxTextureImageUnits = MAX_TEXTURE_IMAGE_UNITS;
570 ctx->Const.MaxTextureUnits = MIN2(ctx->Const.MaxTextureCoordUnits,
571 ctx->Const.MaxTextureImageUnits);
572 ctx->Const.MaxTextureMaxAnisotropy = MAX_TEXTURE_MAX_ANISOTROPY;
573 ctx->Const.MaxTextureLodBias = MAX_TEXTURE_LOD_BIAS;
574 ctx->Const.MaxTextureBufferSize = 65536;
575 ctx->Const.MaxArrayLockSize = MAX_ARRAY_LOCK_SIZE;
576 ctx->Const.SubPixelBits = SUB_PIXEL_BITS;
577 ctx->Const.MinPointSize = MIN_POINT_SIZE;
578 ctx->Const.MaxPointSize = MAX_POINT_SIZE;
579 ctx->Const.MinPointSizeAA = MIN_POINT_SIZE;
580 ctx->Const.MaxPointSizeAA = MAX_POINT_SIZE;
581 ctx->Const.PointSizeGranularity = (GLfloat) POINT_SIZE_GRANULARITY;
582 ctx->Const.MinLineWidth = MIN_LINE_WIDTH;
583 ctx->Const.MaxLineWidth = MAX_LINE_WIDTH;
584 ctx->Const.MinLineWidthAA = MIN_LINE_WIDTH;
585 ctx->Const.MaxLineWidthAA = MAX_LINE_WIDTH;
586 ctx->Const.LineWidthGranularity = (GLfloat) LINE_WIDTH_GRANULARITY;
587 ctx->Const.MaxColorTableSize = MAX_COLOR_TABLE_SIZE;
588 ctx->Const.MaxClipPlanes = 6;
589 ctx->Const.MaxLights = MAX_LIGHTS;
590 ctx->Const.MaxShininess = 128.0;
591 ctx->Const.MaxSpotExponent = 128.0;
592 ctx->Const.MaxViewportWidth = MAX_VIEWPORT_WIDTH;
593 ctx->Const.MaxViewportHeight = MAX_VIEWPORT_HEIGHT;
596 ctx->Const.MaxCombinedUniformBlocks = 36;
597 ctx->Const.MaxUniformBufferBindings = 36;
598 ctx->Const.MaxUniformBlockSize = 16384;
599 ctx->Const.UniformBufferOffsetAlignment = 1;
602 init_program_limits(ctx, GL_VERTEX_PROGRAM_ARB, &ctx->Const.VertexProgram);
605 init_program_limits(ctx, GL_FRAGMENT_PROGRAM_ARB, &ctx->Const.FragmentProgram);
608 init_program_limits(ctx, MESA_GEOMETRY_PROGRAM, &ctx->Const.GeometryProgram);
610 ctx->Const.MaxProgramMatrices = MAX_PROGRAM_MATRICES;
611 ctx->Const.MaxProgramMatrixStackDepth = MAX_PROGRAM_MATRIX_STACK_DEPTH;
614 ctx->Const.CheckArrayBounds = GL_FALSE;
617 ctx->Const.MaxDrawBuffers = MAX_DRAW_BUFFERS;
620 ctx->Const.MaxColorAttachments = MAX_COLOR_ATTACHMENTS;
621 ctx->Const.MaxRenderbufferSize = MAX_RENDERBUFFER_SIZE;
625 ctx->Const.MaxVertexTextureImageUnits = MAX_VERTEX_TEXTURE_IMAGE_UNITS;
626 ctx->Const.MaxCombinedTextureImageUnits = MAX_COMBINED_TEXTURE_IMAGE_UNITS;
627 ctx->Const.MaxVarying = 16; /* old limit not to break tnl and swrast */
630 ctx->Const.MaxGeometryTextureImageUnits = MAX_GEOMETRY_TEXTURE_IMAGE_UNITS;
631 ctx->Const.MaxVertexVaryingComponents = MAX_VERTEX_VARYING_COMPONENTS;
632 ctx->Const.MaxGeometryVaryingComponents = MAX_GEOMETRY_VARYING_COMPONENTS;
633 ctx->Const.MaxGeometryOutputVertices = MAX_GEOMETRY_OUTPUT_VERTICES;
634 ctx->Const.MaxGeometryTotalOutputComponents = MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS;
639 ctx->Const.GLSLVersion = 120;
643 ctx->Const.GLSLVersion = 100;
646 ctx->Const.GLSLVersion = 0; /* GLSL not supported */
650 ctx->Const.MaxSamples = 0;
653 ctx->Const.MaxServerWaitTimeout = (GLuint64) ~0;
656 ctx->Const.SupportedBumpUnits = SUPPORTED_ATI_BUMP_UNITS;
659 ctx->Const.QuadsFollowProvokingVertexConvention = GL_TRUE;
662 ctx->Const.MaxTransformFeedbackBuffers = MAX_FEEDBACK_BUFFERS;
663 ctx->Const.MaxTransformFeedbackSeparateComponents = 4 * MAX_FEEDBACK_ATTRIBS;
664 ctx->Const.MaxTransformFeedbackInterleavedComponents = 4 * MAX_FEEDBACK_ATTRIBS;
665 ctx->Const.MaxVertexStreams = 1;
668 ctx->Const.ProfileMask = GL_CONTEXT_COMPATIBILITY_PROFILE_BIT;
671 ctx->Const.MinProgramTexelOffset = -8;
672 ctx->Const.MaxProgramTexelOffset = 7;
675 ctx->Const.ResetStrategy = GL_NO_RESET_NOTIFICATION_ARB;
678 ctx->Const.PrimitiveRestartInSoftware = GL_FALSE;
698 assert(ctx->Const.FragmentProgram.MaxLocalParams <= MAX_PROGRAM_LOCAL_PARAMS);
699 assert(ctx->Const.VertexProgram.MaxLocalParams <= MAX_PROGRAM_LOCAL_PARAMS);
707 assert(ctx->Const.MaxTextureImageUnits > 0);
708 assert(ctx->Const.MaxTextureImageUnits <= MAX_TEXTURE_IMAGE_UNITS);
709 assert(ctx->Const.MaxTextureCoordUnits > 0);
710 assert(ctx->Const.MaxTextureCoordUnits <= MAX_TEXTURE_COORD_UNITS);
711 assert(ctx->Const.MaxTextureUnits > 0);
712 assert(ctx->Const.MaxTextureUnits <= MAX_TEXTURE_IMAGE_UNITS);
713 assert(ctx->Const.MaxTextureUnits <= MAX_TEXTURE_COORD_UNITS);
714 assert(ctx->Const.MaxTextureUnits == MIN2(ctx->Const.MaxTextureImageUnits,
715 ctx->Const.MaxTextureCoordUnits));
716 assert(ctx->Const.MaxCombinedTextureImageUnits > 0);
717 assert(ctx->Const.MaxCombinedTextureImageUnits <= MAX_COMBINED_TEXTURE_IMAGE_UNITS);
718 assert(ctx->Const.MaxTextureCoordUnits <= MAX_COMBINED_TEXTURE_IMAGE_UNITS);
720 assert(ctx->Const.MaxTextureCoordUnits <= ctx->Const.MaxTextureImageUnits);
724 assert(ctx->Const.MaxTextureLevels <= MAX_TEXTURE_LEVELS);
725 assert(ctx->Const.Max3DTextureLevels <= MAX_3D_TEXTURE_LEVELS);
726 assert(ctx->Const.MaxCubeTextureLevels <= MAX_CUBE_TEXTURE_LEVELS);
727 assert(ctx->Const.MaxTextureRectSize <= MAX_TEXTURE_RECT_SIZE);
734 assert((1 << (ctx->Const.MaxTextureLevels - 1))
735 <= ctx->Const.MaxViewportWidth);
736 assert((1 << (ctx->Const.MaxTextureLevels - 1))
737 <= ctx->Const.MaxViewportHeight);
739 assert(ctx->Const.MaxDrawBuffers <= MAX_DRAW_BUFFERS);
915 const struct gl_config *visual,
917 const struct dd_function_table *driverFunctions,
1067 const struct gl_config *visual,
1069 const struct dd_function_table *driverFunctions,
1204 _mesa_copy_context( const struct gl_context *src, struct gl_context *dst,
1325 check_compatible(const struct gl_context *ctx,
1326 const struct gl_framebuffer *buffer)
1328 const struct gl_config *ctxvis = &ctx->Visual;
1329 const struct gl_config *bufvis = &buffer->Visual;
1730 for (i = ctx->Const.MaxDualSourceDrawBuffers;
1750 _mesa_valid_to_render(struct gl_context *ctx, const char *where)