d02baedcc94f1cc82c3294bfa22491a0998327d3
1 /* $Id: config.h,v 1.39 2002/06/15 02:38:15 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 * Tunable configuration parameters.
43 * OpenGL implementation limits
46 /* Maximum modelview matrix stack depth: */
47 #define MAX_MODELVIEW_STACK_DEPTH 32
49 /* Maximum projection matrix stack depth: */
50 #define MAX_PROJECTION_STACK_DEPTH 32
52 /* Maximum texture matrix stack depth: */
53 #define MAX_TEXTURE_STACK_DEPTH 10
55 /* Maximum color matrix stack depth: */
56 #define MAX_COLOR_STACK_DEPTH 4
58 /* Vertex program matrix stacks: */
59 #define MAX_PROGRAM_MATRICES 8
60 #define MAX_PROGRAM_STACK_DEPTH 4
62 /* Maximum attribute stack depth: */
63 #define MAX_ATTRIB_STACK_DEPTH 16
65 /* Maximum client attribute stack depth: */
66 #define MAX_CLIENT_ATTRIB_STACK_DEPTH 16
68 /* Maximum recursion depth of display list calls: */
69 #define MAX_LIST_NESTING 64
71 /* Maximum number of lights: */
74 /* Maximum user-defined clipping planes: */
75 #define MAX_CLIP_PLANES 6
77 /* Maximum pixel map lookup table size: */
78 #define MAX_PIXEL_MAP_TABLE 256
80 /* Number of auxillary color buffers: */
81 #define NUM_AUX_BUFFERS 0
83 /* Maximum order (degree) of curves: */
85 # define MAX_EVAL_ORDER 12
87 # define MAX_EVAL_ORDER 30
90 /* Maximum Name stack depth */
91 #define MAX_NAME_STACK_DEPTH 64
93 /* Min and Max point sizes and granularity */
94 #define MIN_POINT_SIZE 1.0
95 #define MAX_POINT_SIZE 20.0
96 #define POINT_SIZE_GRANULARITY 0.1
98 /* Min and Max line widths and granularity */
99 #define MIN_LINE_WIDTH 1.0
100 #define MAX_LINE_WIDTH 10.0
101 #define LINE_WIDTH_GRANULARITY 0.1
103 /* Max texture palette / color table size */
104 #define MAX_COLOR_TABLE_SIZE 256
106 /* Number of 1D/2D texture mipmap levels */
107 #define MAX_TEXTURE_LEVELS 12
109 /* Number of 3D texture mipmap levels */
110 #define MAX_3D_TEXTURE_LEVELS 8
112 /* Number of cube texture mipmap levels */
113 #define MAX_CUBE_TEXTURE_LEVELS 12
115 /* Number of texture units - GL_ARB_multitexture */
116 #define MAX_TEXTURE_UNITS 8
118 /* Maximum viewport/image size: */
119 #define MAX_WIDTH 2048
120 #define MAX_HEIGHT 2048
122 /* Maxmimum size for CVA. May be overridden by the drivers. */
123 #define MAX_ARRAY_LOCK_SIZE 3000
125 /* Subpixel precision for antialiasing, window coordinate snapping */
126 #define SUB_PIXEL_BITS 4
128 /* Size of histogram tables */
129 #define HISTOGRAM_TABLE_SIZE 256
131 /* Max convolution filter sizes */
132 #define MAX_CONVOLUTION_WIDTH 9
133 #define MAX_CONVOLUTION_HEIGHT 9
135 /* GL_ARB_texture_compression */
136 #define MAX_COMPRESSED_TEXTURE_FORMATS 25
138 /* GL_EXT_texture_filter_anisotropic */
139 #define MAX_TEXTURE_MAX_ANISOTROPY 16.0
141 /* GL_EXT_texture_lod_bias */
142 #define MAX_TEXTURE_LOD_BIAS 4.0
147 * Mesa-specific parameters
152 * Bits per accumulation buffer color component: 8, 16 or 32
154 #define ACCUM_BITS 32
158 * Bits per depth buffer value. Any reasonable value up to 31 will
159 * work. 32 doesn't work because of integer overflow problems in the
162 #ifndef DEFAULT_SOFTWARE_DEPTH_BITS
163 #define DEFAULT_SOFTWARE_DEPTH_BITS 16
165 #if DEFAULT_SOFTWARE_DEPTH_BITS <= 16
166 #define DEFAULT_SOFTWARE_DEPTH_TYPE GLushort
168 #define DEFAULT_SOFTWARE_DEPTH_TYPE GLuint
174 * Bits per stencil value: 8
176 #define STENCIL_BITS 8
180 * Bits per color channel: 8, 16 or 32
188 * Color channel component order
189 * (changes will almost certainly cause problems at this time)
197 #endif /* CONFIG_H */