Lines Matching refs:Const
730 add_const("gl_MaxVertexAttribs", state->Const.MaxVertexAttribs);
732 state->Const.MaxVertexTextureImageUnits);
734 state->Const.MaxCombinedTextureImageUnits);
735 add_const("gl_MaxTextureImageUnits", state->Const.MaxTextureImageUnits);
736 add_const("gl_MaxDrawBuffers", state->Const.MaxDrawBuffers);
744 state->Const.MaxFragmentUniformComponents);
746 state->Const.MaxVertexUniformComponents);
751 state->Const.MaxVertexUniformComponents / 4);
753 state->Const.MaxFragmentUniformComponents / 4);
760 state->ctx->Const.Program[MESA_SHADER_VERTEX].MaxOutputComponents / 4);
762 state->ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxInputComponents / 4);
765 state->ctx->Const.MaxVarying);
773 state->Const.MaxDualSourceDrawBuffers);
781 add_const("gl_MaxVaryingFloats", state->ctx->Const.MaxVarying * 4);
792 state->Const.MinProgramTexelOffset);
794 state->Const.MaxProgramTexelOffset);
798 add_const("gl_MaxClipDistances", state->Const.MaxClipPlanes);
801 add_const("gl_MaxVaryingComponents", state->ctx->Const.MaxVarying * 4);
804 add_const("gl_MaxCullDistances", state->Const.MaxClipPlanes);
806 state->Const.MaxClipPlanes);
811 state->Const.MaxVertexOutputComponents);
813 state->Const.MaxGeometryInputComponents);
815 state->Const.MaxGeometryOutputComponents);
817 state->Const.MaxFragmentInputComponents);
819 state->Const.MaxGeometryTextureImageUnits);
821 state->Const.MaxGeometryOutputVertices);
823 state->Const.MaxGeometryTotalOutputComponents);
825 state->Const.MaxGeometryUniformComponents);
837 state->Const.MaxGeometryOutputComponents);
846 add_const("gl_MaxLights", state->Const.MaxLights);
848 add_const("gl_MaxClipPlanes", state->Const.MaxClipPlanes);
853 add_const("gl_MaxTextureUnits", state->Const.MaxTextureUnits);
859 add_const("gl_MaxTextureCoords", state->Const.MaxTextureCoords);
864 state->Const.MaxVertexAtomicCounters);
866 state->Const.MaxFragmentAtomicCounters);
868 state->Const.MaxCombinedAtomicCounters);
870 state->Const.MaxAtomicBufferBindings);
874 state->Const.MaxGeometryAtomicCounters);
878 state->Const.MaxTessControlAtomicCounters);
880 state->Const.MaxTessEvaluationAtomicCounters);
886 state->Const.MaxVertexAtomicCounterBuffers);
888 state->Const.MaxFragmentAtomicCounterBuffers);
890 state->Const.MaxCombinedAtomicCounterBuffers);
892 state->Const.MaxAtomicCounterBufferSize);
896 state->Const.MaxGeometryAtomicCounterBuffers);
900 state->Const.MaxTessControlAtomicCounterBuffers);
902 state->Const.MaxTessEvaluationAtomicCounterBuffers);
908 state->Const.MaxComputeAtomicCounterBuffers);
910 state->Const.MaxComputeAtomicCounters);
912 state->Const.MaxComputeImageUniforms);
914 state->Const.MaxComputeTextureImageUnits);
916 state->Const.MaxComputeUniformComponents);
919 state->Const.MaxComputeWorkGroupCount[0],
920 state->Const.MaxComputeWorkGroupCount[1],
921 state->Const.MaxComputeWorkGroupCount[2]);
923 state->Const.MaxComputeWorkGroupSize[0],
924 state->Const.MaxComputeWorkGroupSize[1],
925 state->Const.MaxComputeWorkGroupSize[2]);
950 state->Const.MaxTransformFeedbackBuffers);
952 state->Const.MaxTransformFeedbackInterleavedComponents);
957 state->Const.MaxImageUnits);
959 state->Const.MaxVertexImageUniforms);
961 state->Const.MaxFragmentImageUniforms);
963 state->Const.MaxCombinedImageUniforms);
967 state->Const.MaxGeometryImageUniforms);
972 state->Const.MaxCombinedShaderOutputResources);
974 state->Const.MaxImageSamples);
979 state->Const.MaxTessControlImageUniforms);
981 state->Const.MaxTessEvaluationImageUniforms);
988 state->Const.MaxCombinedShaderOutputResources);
995 state->Const.MaxViewports);
999 add_const("gl_MaxPatchVertices", state->Const.MaxPatchVertices);
1000 add_const("gl_MaxTessGenLevel", state->Const.MaxTessGenLevel);
1001 add_const("gl_MaxTessControlInputComponents", state->Const.MaxTessControlInputComponents);
1002 add_const("gl_MaxTessControlOutputComponents", state->Const.MaxTessControlOutputComponents);
1003 add_const("gl_MaxTessControlTextureImageUnits", state->Const.MaxTessControlTextureImageUnits);
1004 add_const("gl_MaxTessEvaluationInputComponents", state->Const.MaxTessEvaluationInputComponents);
1005 add_const("gl_MaxTessEvaluationOutputComponents", state->Const.MaxTessEvaluationOutputComponents);
1006 add_const("gl_MaxTessEvaluationTextureImageUnits", state->Const.MaxTessEvaluationTextureImageUnits);
1007 add_const("gl_MaxTessPatchComponents", state->Const.MaxTessPatchComponents);
1008 add_const("gl_MaxTessControlTotalOutputComponents", state->Const.MaxTessControlTotalOutputComponents);
1009 add_const("gl_MaxTessControlUniformComponents", state->Const.MaxTessControlUniformComponents);
1010 add_const("gl_MaxTessEvaluationUniformComponents", state->Const.MaxTessEvaluationUniformComponents);
1016 add_const("gl_MaxSamples", state->Const.MaxSamples);
1058 array(mat4_t, state->Const.MaxTextureCoords);
1064 add_uniform(array(vec4_t, state->Const.MaxClipPlanes), "gl_ClipPlane");
1073 state->Const.MaxLights),
1082 array(type("gl_LightProducts"), state->Const.MaxLights);
1086 add_uniform(array(vec4_t, state->Const.MaxTextureUnits),
1090 array(vec4_t, state->Const.MaxTextureCoords);
1191 int bbox_slot = state->ctx->Const.NoPrimitiveBoundingBoxOutput ? -1 :
1232 if (this->state->ctx->Const.GLSLTessLevelsAsInputs) {
1316 if (this->state->ctx->Const.GLSLFragCoordIsSysVal) {
1323 if (this->state->ctx->Const.GLSLFrontFacingIsSysVal) {
1332 if (this->state->ctx->Const.GLSLPointCoordIsSysVal)
1354 array(vec4_t, state->Const.MaxDrawBuffers),
1362 array(vec4_t, state->Const.MaxDrawBuffers),
1374 array(vec4_t, state->Const.MaxDualSourceDrawBuffers),
1509 &state->ctx->Const.ShaderCompilerOptions[state->stage];
1600 add_variable("gl_in", array(per_vertex_in_type, state->Const.MaxPatchVertices),