• Home
  • Raw
  • Download

Lines Matching refs:Const

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