Lines Matching refs:Const
635 add_const("gl_MaxVertexAttribs", state->Const.MaxVertexAttribs);
637 state->Const.MaxVertexTextureImageUnits);
639 state->Const.MaxCombinedTextureImageUnits);
640 add_const("gl_MaxTextureImageUnits", state->Const.MaxTextureImageUnits);
641 add_const("gl_MaxDrawBuffers", state->Const.MaxDrawBuffers);
649 state->Const.MaxFragmentUniformComponents);
651 state->Const.MaxVertexUniformComponents);
656 state->Const.MaxVertexUniformComponents / 4);
658 state->Const.MaxFragmentUniformComponents / 4);
665 state->ctx->Const.Program[MESA_SHADER_VERTEX].MaxOutputComponents / 4);
667 state->ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxInputComponents / 4);
670 state->ctx->Const.MaxVarying);
678 state->Const.MaxDualSourceDrawBuffers);
684 add_const("gl_MaxVaryingFloats", state->ctx->Const.MaxVarying * 4);
695 state->Const.MinProgramTexelOffset);
697 state->Const.MaxProgramTexelOffset);
701 add_const("gl_MaxClipDistances", state->Const.MaxClipPlanes);
704 add_const("gl_MaxVaryingComponents", state->ctx->Const.MaxVarying * 4);
707 add_const("gl_MaxCullDistances", state->Const.MaxClipPlanes);
709 state->Const.MaxClipPlanes);
714 state->Const.MaxVertexOutputComponents);
716 state->Const.MaxGeometryInputComponents);
718 state->Const.MaxGeometryOutputComponents);
720 state->Const.MaxFragmentInputComponents);
722 state->Const.MaxGeometryTextureImageUnits);
724 state->Const.MaxGeometryOutputVertices);
726 state->Const.MaxGeometryTotalOutputComponents);
728 state->Const.MaxGeometryUniformComponents);
740 state->Const.MaxGeometryOutputComponents);
749 add_const("gl_MaxLights", state->Const.MaxLights);
751 add_const("gl_MaxClipPlanes", state->Const.MaxClipPlanes);
756 add_const("gl_MaxTextureUnits", state->Const.MaxTextureUnits);
762 add_const("gl_MaxTextureCoords", state->Const.MaxTextureCoords);
767 state->Const.MaxVertexAtomicCounters);
769 state->Const.MaxFragmentAtomicCounters);
771 state->Const.MaxCombinedAtomicCounters);
773 state->Const.MaxAtomicBufferBindings);
777 state->Const.MaxGeometryAtomicCounters);
781 state->Const.MaxTessControlAtomicCounters);
783 state->Const.MaxTessEvaluationAtomicCounters);
789 state->Const.MaxVertexAtomicCounterBuffers);
791 state->Const.MaxFragmentAtomicCounterBuffers);
793 state->Const.MaxCombinedAtomicCounterBuffers);
795 state->Const.MaxAtomicCounterBufferSize);
799 state->Const.MaxGeometryAtomicCounterBuffers);
803 state->Const.MaxTessControlAtomicCounterBuffers);
805 state->Const.MaxTessEvaluationAtomicCounterBuffers);
811 state->Const.MaxComputeAtomicCounterBuffers);
813 state->Const.MaxComputeAtomicCounters);
815 state->Const.MaxComputeImageUniforms);
817 state->Const.MaxComputeTextureImageUnits);
819 state->Const.MaxComputeUniformComponents);
822 state->Const.MaxComputeWorkGroupCount[0],
823 state->Const.MaxComputeWorkGroupCount[1],
824 state->Const.MaxComputeWorkGroupCount[2]);
826 state->Const.MaxComputeWorkGroupSize[0],
827 state->Const.MaxComputeWorkGroupSize[1],
828 state->Const.MaxComputeWorkGroupSize[2]);
853 state->Const.MaxTransformFeedbackBuffers);
855 state->Const.MaxTransformFeedbackInterleavedComponents);
860 state->Const.MaxImageUnits);
862 state->Const.MaxVertexImageUniforms);
864 state->Const.MaxFragmentImageUniforms);
866 state->Const.MaxCombinedImageUniforms);
870 state->Const.MaxGeometryImageUniforms);
875 state->Const.MaxCombinedShaderOutputResources);
877 state->Const.MaxImageSamples);
882 state->Const.MaxTessControlImageUniforms);
884 state->Const.MaxTessEvaluationImageUniforms);
891 state->Const.MaxCombinedShaderOutputResources);
897 add_const("gl_MaxViewports", state->Const.MaxViewports);
900 add_const("gl_MaxPatchVertices", state->Const.MaxPatchVertices);
901 add_const("gl_MaxTessGenLevel", state->Const.MaxTessGenLevel);
902 add_const("gl_MaxTessControlInputComponents", state->Const.MaxTessControlInputComponents);
903 add_const("gl_MaxTessControlOutputComponents", state->Const.MaxTessControlOutputComponents);
904 add_const("gl_MaxTessControlTextureImageUnits", state->Const.MaxTessControlTextureImageUnits);
905 add_const("gl_MaxTessEvaluationInputComponents", state->Const.MaxTessEvaluationInputComponents);
906 add_const("gl_MaxTessEvaluationOutputComponents", state->Const.MaxTessEvaluationOutputComponents);
907 add_const("gl_MaxTessEvaluationTextureImageUnits", state->Const.MaxTessEvaluationTextureImageUnits);
908 add_const("gl_MaxTessPatchComponents", state->Const.MaxTessPatchComponents);
909 add_const("gl_MaxTessControlTotalOutputComponents", state->Const.MaxTessControlTotalOutputComponents);
910 add_const("gl_MaxTessControlUniformComponents", state->Const.MaxTessControlUniformComponents);
911 add_const("gl_MaxTessEvaluationUniformComponents", state->Const.MaxTessEvaluationUniformComponents);
917 add_const("gl_MaxSamples", state->Const.MaxSamples);
954 array(mat4_t, state->Const.MaxTextureCoords);
960 add_uniform(array(vec4_t, state->Const.MaxClipPlanes), "gl_ClipPlane");
969 state->Const.MaxLights),
978 array(type("gl_LightProducts"), state->Const.MaxLights);
982 add_uniform(array(vec4_t, state->Const.MaxTextureUnits),
986 array(vec4_t, state->Const.MaxTextureCoords);
1087 int bbox_slot = state->ctx->Const.NoPrimitiveBoundingBoxOutput ? -1 :
1112 if (this->state->ctx->Const.GLSLTessLevelsAsInputs) {
1177 if (this->state->ctx->Const.GLSLFragCoordIsSysVal)
1182 if (this->state->ctx->Const.GLSLFrontFacingIsSysVal)
1202 array(vec4_t, state->Const.MaxDrawBuffers), "gl_FragData");
1208 array(vec4_t, state->Const.MaxDrawBuffers),
1220 array(vec4_t, state->Const.MaxDualSourceDrawBuffers),
1404 add_variable("gl_in", array(per_vertex_in_type, state->Const.MaxPatchVertices),