Lines Matching refs:CONST
64 #undef CONST
153 const int *extra;
178 #define CONST(value) \
214 static const int extra_##e[] = { \
219 static const int extra_##e1##_##e2[] = { \
229 static const int extra_new_buffers[] = {
234 static const int extra_new_frag_clamp[] = {
239 static const int extra_valid_draw_buffer[] = {
244 static const int extra_valid_texture_unit[] = {
249 static const int extra_valid_clip_distance[] = {
254 static const int extra_flush_current_valid_texture_unit[] = {
260 static const int extra_flush_current[] = {
265 static const int extra_EXT_secondary_color_flush_current[] = {
271 static const int extra_EXT_fog_coord_flush_current[] = {
277 static const int extra_EXT_texture_integer[] = {
282 static const int extra_GLSL_130[] = {
287 static const int extra_texture_buffer_object[] = {
293 static const int extra_ARB_uniform_buffer_object_and_geometry_shader[] = {
348 static const int
356 static const int
365 static const int
371 static const int extra_version_30[] = { EXTRA_VERSION_30, EXTRA_END };
372 static const int extra_version_31[] = { EXTRA_VERSION_31, EXTRA_END };
373 static const int extra_version_32[] = { EXTRA_VERSION_32, EXTRA_END };
375 static const int
384 static const int
406 static const struct value_desc values[] = {
430 { GL_ALIASED_LINE_WIDTH_RANGE, CONTEXT_FLOAT2(Const.MinLineWidth), NO_EXTRA },
431 { GL_MAX_ELEMENTS_VERTICES, CONTEXT_INT(Const.MaxArrayLockSize), NO_EXTRA },
432 { GL_MAX_ELEMENTS_INDICES, CONTEXT_INT(Const.MaxArrayLockSize), NO_EXTRA },
434 offsetof(struct gl_context, Const.MaxTextureLevels), NO_EXTRA },
435 { GL_MAX_VIEWPORT_DIMS, CONTEXT_INT2(Const.MaxViewportWidth), NO_EXTRA },
437 { GL_ALIASED_POINT_SIZE_RANGE, CONTEXT_FLOAT2(Const.MinPointSize), NO_EXTRA },
454 { GL_SUBPIXEL_BITS, CONTEXT_INT(Const.SubPixelBits), NO_EXTRA },
472 offsetof(struct gl_context, Const.MaxCubeTextureLevels),
531 { GL_MAX_RENDERBUFFER_SIZE_EXT, CONTEXT_INT(Const.MaxRenderbufferSize),
536 { GL_MAX_CLIP_PLANES, CONTEXT_INT(Const.MaxClipPlanes), NO_EXTRA },
543 CONTEXT_FLOAT(Const.MaxTextureMaxAnisotropy),
549 { GL_MAX_LIGHTS, CONTEXT_INT(Const.MaxLights), NO_EXTRA },
593 { GL_LINE_WIDTH_RANGE, CONTEXT_FLOAT2(Const.MinLineWidthAA), NO_EXTRA },
597 { GL_MAX_MODELVIEW_STACK_DEPTH, CONST(MAX_MODELVIEW_STACK_DEPTH), NO_EXTRA },
598 { GL_MAX_PROJECTION_STACK_DEPTH, CONST(MAX_PROJECTION_STACK_DEPTH), NO_EXTRA },
599 { GL_MAX_TEXTURE_STACK_DEPTH, CONST(MAX_TEXTURE_STACK_DEPTH), NO_EXTRA },
607 { GL_POINT_SIZE_RANGE, CONTEXT_FLOAT2(Const.MinPointSizeAA), NO_EXTRA },
644 { GL_SHADER_COMPILER, CONST(1), extra_ARB_ES2_compatibility },
645 { GL_MAX_VARYING_VECTORS, CONTEXT_INT(Const.MaxVarying),
653 { GL_MAX_TEXTURE_UNITS, CONTEXT_INT(Const.MaxTextureUnits), NO_EXTRA },
682 CONTEXT_INT(Const.FragmentProgram.MaxUniformComponents),
687 CONTEXT_INT(Const.VertexProgram.MaxUniformComponents),
693 { GL_MAX_TEXTURE_LOD_BIAS_EXT, CONTEXT_FLOAT(Const.MaxTextureLodBias),
714 CONTEXT_INT(Const.MaxTextureCoordUnits),
727 { GL_MAX_DRAW_BUFFERS_ARB, CONTEXT_INT(Const.MaxDrawBuffers), NO_EXTRA },
730 { GL_MAX_COLOR_ATTACHMENTS, CONTEXT_INT(Const.MaxColorAttachments),
753 CONTEXT_INT(Const.MaxTextureImageUnits),
756 CONTEXT_INT(Const.MaxVertexTextureImageUnits), extra_ARB_vertex_shader },
758 CONTEXT_INT(Const.MaxCombinedTextureImageUnits),
776 CONTEXT_INT(Const.VertexProgram.MaxAttribs),
782 offsetof(struct gl_context, Const.Max3DTextureLevels), NO_EXTRA },
807 { GL_MAX_VARYING_VECTORS, CONTEXT_INT(Const.MaxVarying), NO_EXTRA },
809 { GL_SHADER_COMPILER, CONST(1), NO_EXTRA },
811 { GL_NUM_SHADER_BINARY_FORMATS, CONST(0), NO_EXTRA },
812 { GL_SHADER_BINARY_FORMATS, CONST(0), NO_EXTRA },
839 { GL_CURRENT_RASTER_INDEX, CONST(1), NO_EXTRA },
858 { GL_INDEX_MODE, CONST(0) , NO_EXTRA},
867 { GL_LINE_WIDTH_GRANULARITY, CONTEXT_FLOAT(Const.LineWidthGranularity), NO_EXTRA },
896 { GL_MAX_ATTRIB_STACK_DEPTH, CONST(MAX_ATTRIB_STACK_DEPTH), NO_EXTRA },
897 { GL_MAX_CLIENT_ATTRIB_STACK_DEPTH, CONST(MAX_CLIENT_ATTRIB_STACK_DEPTH), NO_EXTRA },
899 { GL_MAX_EVAL_ORDER, CONST(MAX_EVAL_ORDER), NO_EXTRA },
900 { GL_MAX_LIST_NESTING, CONST(MAX_LIST_NESTING), NO_EXTRA },
901 { GL_MAX_NAME_STACK_DEPTH, CONST(MAX_NAME_STACK_DEPTH), NO_EXTRA },
902 { GL_MAX_PIXEL_MAP_TABLE, CONST(MAX_PIXEL_MAP_TABLE), NO_EXTRA },
917 { GL_POINT_SIZE_GRANULARITY, CONTEXT_FLOAT(Const.PointSizeGranularity), NO_EXTRA },
928 { GL_RGBA_MODE, CONST(1), NO_EXTRA },
944 CONTEXT_INT(Const.MaxArrayTextureLayers), extra_MESA_texture_array },
960 { GL_VERTEX_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
961 { GL_NORMAL_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
962 { GL_COLOR_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
966 { GL_INDEX_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
967 { GL_TEXTURE_COORD_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
970 { GL_EDGE_FLAG_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
1105 CONST(MAX_NV_FRAGMENT_PROGRAM_PARAMS),
1114 CONTEXT_INT(Const.MaxTextureRectSize), extra_NV_texture_rectangle },
1122 { GL_MAX_SHININESS_NV, CONTEXT_FLOAT(Const.MaxShininess),
1124 { GL_MAX_SPOT_EXPONENT_NV, CONTEXT_FLOAT(Const.MaxSpotExponent),
1160 CONTEXT_INT(Const.MaxProgramMatrixStackDepth),
1163 CONTEXT_INT(Const.MaxProgramMatrices),
1195 { GL_NUM_FRAGMENT_REGISTERS_ATI, CONST(6), extra_ATI_fragment_shader },
1196 { GL_NUM_FRAGMENT_CONSTANTS_ATI, CONST(8), extra_ATI_fragment_shader },
1197 { GL_NUM_PASSES_ATI, CONST(2), extra_ATI_fragment_shader },
1198 { GL_NUM_INSTRUCTIONS_PER_PASS_ATI, CONST(8), extra_ATI_fragment_shader },
1199 { GL_NUM_INSTRUCTIONS_TOTAL_ATI, CONST(16), extra_ATI_fragment_shader },
1200 { GL_COLOR_ALPHA_PAIRING_ATI, CONST(GL_TRUE), extra_ATI_fragment_shader },
1201 { GL_NUM_LOOPBACK_COMPONENTS_ATI, CONST(3), extra_ATI_fragment_shader },
1203 CONST(3), extra_ATI_fragment_shader },
1214 CONTEXT_BOOL(Const.QuadsFollowProvokingVertexConvention),
1218 { GL_MAX_SAMPLES, CONTEXT_INT(Const.MaxSamples),
1227 CONTEXT_INT64(Const.MaxServerWaitTimeout), extra_ARB_sync },
1239 CONTEXT_INT(Const.MaxTransformFeedbackInterleavedComponents),
1242 CONTEXT_INT(Const.MaxTransformFeedbackBuffers),
1245 CONTEXT_INT(Const.MaxTransformFeedbackSeparateComponents),
1258 CONTEXT_INT(Const.MaxTransformFeedbackBuffers),
1261 CONTEXT_INT(Const.MaxVertexStreams),
1266 CONTEXT_INT(Const.MaxGeometryTextureImageUnits),
1269 CONTEXT_INT(Const.MaxGeometryOutputVertices),
1272 CONTEXT_INT(Const.MaxGeometryTotalOutputComponents),
1275 CONTEXT_INT(Const.GeometryProgram.MaxUniformComponents),
1278 CONTEXT_INT(Const.MaxGeometryVaryingComponents),
1281 CONTEXT_INT(Const.MaxVertexVaryingComponents),
1289 CONTEXT_INT(Const.MinProgramTexelOffset),
1292 CONTEXT_INT(Const.MaxProgramTexelOffset),
1296 { GL_MAX_TEXTURE_BUFFER_SIZE_ARB, CONTEXT_INT(Const.MaxTextureBufferSize),
1315 { GL_CONTEXT_FLAGS, CONTEXT_INT(Const.ContextFlags), extra_version_30 },
1332 { GL_CONTEXT_PROFILE_MASK, CONTEXT_INT(Const.ProfileMask),
1336 { GL_RESET_NOTIFICATION_STRATEGY_ARB, CONTEXT_ENUM(Const.ResetStrategy), NO_EXTRA },
1341 { GL_MAX_DEBUG_LOGGED_MESSAGES_ARB, CONST(MAX_DEBUG_LOGGED_MESSAGES), NO_EXTRA },
1342 { GL_MAX_DEBUG_MESSAGE_LENGTH_ARB, CONST(MAX_DEBUG_MESSAGE_LENGTH), NO_EXTRA },
1344 { GL_MAX_DUAL_SOURCE_DRAW_BUFFERS, CONTEXT_INT(Const.MaxDualSourceDrawBuffers), extra_ARB_blend_func_extended },
1347 { GL_MAX_VERTEX_UNIFORM_BLOCKS, CONTEXT_INT(Const.VertexProgram.MaxUniformBlocks),
1349 { GL_MAX_FRAGMENT_UNIFORM_BLOCKS, CONTEXT_INT(Const.FragmentProgram.MaxUniformBlocks),
1351 { GL_MAX_GEOMETRY_UNIFORM_BLOCKS, CONTEXT_INT(Const.GeometryProgram.MaxUniformBlocks),
1353 { GL_MAX_COMBINED_UNIFORM_BLOCKS, CONTEXT_INT(Const.MaxCombinedUniformBlocks),
1355 { GL_MAX_UNIFORM_BLOCK_SIZE, CONTEXT_INT(Const.MaxUniformBlockSize),
1357 { GL_MAX_UNIFORM_BUFFER_BINDINGS, CONTEXT_INT(Const.MaxUniformBufferBindings),
1360 { GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS, CONTEXT_INT(Const.VertexProgram.MaxCombinedUniformComponents),
1362 { GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS, CONTEXT_INT(Const.FragmentProgram.MaxCombinedUniformComponents),
1364 { GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, CONTEXT_INT(Const.GeometryProgram.MaxCombinedUniformComponents),
1366 { GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, CONTEXT_INT(Const.UniformBufferOffsetAlignment),
1391 static const int prime_factor = 89, prime_step = 281;
1398 const struct value_desc *d;
1399 const char *api_names[] = {
1405 const char *api_name;
1501 find_custom_value(struct gl_context *ctx, const struct value_desc *d, union value *v)
1688 v->value_int = ctx->Const.MaxVarying * 4;
1806 v->value_int = ctx->Const.VertexProgram.MaxUniformComponents / 4;
1810 v->value_int = ctx->Const.FragmentProgram.MaxUniformComponents / 4;
1875 check_extra(struct gl_context *ctx, const char *func, const struct value_desc *d)
1877 const GLuint version = ctx->Version;
1879 const int *e;
1927 if (d->pname - GL_DRAW_BUFFER0_ARB >= ctx->Const.MaxDrawBuffers) {
1934 if (ctx->Texture.CurrentUnit >= ctx->Const.MaxTextureCoordUnits) {
1941 if (d->pname - GL_CLIP_DISTANCE0 >= ctx->Const.MaxClipPlanes) {
1948 if (ctx->Const.GLSLVersion >= 130) {
1971 static const struct value_desc error_value =
1996 static const struct value_desc *
1997 find_value(const char *func, GLenum pname, void **p, union value *v)
2002 const struct value_desc *d;
2055 static const int transpose[] = {
2065 const struct value_desc *d;
2154 const struct value_desc *d;
2243 const struct value_desc *d;
2339 const struct value_desc *d;
2435 const struct value_desc *d;
2522 find_value_indexed(const char *func, GLenum pname, int index, union value *v)
2529 if (index >= ctx->Const.MaxDrawBuffers)
2539 if (index >= ctx->Const.MaxDrawBuffers)
2546 if (index >= ctx->Const.MaxDrawBuffers)
2555 if (index >= ctx->Const.MaxDrawBuffers)
2562 if (index >= ctx->Const.MaxDrawBuffers)
2569 if (index >= ctx->Const.MaxDrawBuffers)
2576 if (index >= ctx->Const.MaxDrawBuffers)
2584 if (index >= ctx->Const.MaxDrawBuffers)
2595 if (index >= ctx->Const.MaxTransformFeedbackBuffers)
2603 if (index >= ctx->Const.MaxTransformFeedbackBuffers)
2611 if (index >= ctx->Const.MaxTransformFeedbackBuffers)
2619 if (index >= ctx->Const.MaxUniformBufferBindings)
2627 if (index >= ctx->Const.MaxUniformBufferBindings)
2635 if (index >= ctx->Const.MaxUniformBufferBindings)
2734 const struct value_desc *d;